diff --git a/modules/server/src/main/java/io/jpom/service/dblog/DbSystemMonitorLogService.java b/modules/server/src/main/java/io/jpom/service/dblog/DbSystemMonitorLogService.java index 1e47cee33..5e8031dbf 100644 --- a/modules/server/src/main/java/io/jpom/service/dblog/DbSystemMonitorLogService.java +++ b/modules/server/src/main/java/io/jpom/service/dblog/DbSystemMonitorLogService.java @@ -6,10 +6,12 @@ import io.jpom.model.log.SystemMonitorLog; import org.springframework.stereotype.Service; /** - * @author bwcx_jzy + * @author Arno + * @date 2019/9/13 */ @Service public class DbSystemMonitorLogService extends BaseDbLogService { + public DbSystemMonitorLogService() { super(SystemMonitorLog.TABLE_NAME, SystemMonitorLog.class); setKey("id"); diff --git a/modules/server/src/main/resources/templates/node/welcome.html b/modules/server/src/main/resources/templates/node/welcome.html index db5b96922..0ab4ed968 100644 --- a/modules/server/src/main/resources/templates/node/welcome.html +++ b/modules/server/src/main/resources/templates/node/welcome.html @@ -270,10 +270,14 @@ }, series: series }; - if (!myEcharts) { - myEcharts = echarts.init(document.getElementById('echarts')); + try { + if (!myEcharts) { + myEcharts = echarts.init(document.getElementById('echarts')); + } + myEcharts.setOption(option); + } catch (e) { + console.error(e); } - myEcharts.setOption(option); } function loadProcessList() { @@ -289,7 +293,6 @@ } }); } - \ No newline at end of file