diff --git a/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.js b/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.js index 2abf528..058dfc6 100644 --- a/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.js +++ b/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.js @@ -273,7 +273,12 @@ export default { let getChartData = () => { - let timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "") + let timeScope = ''; + try { + timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "") + }catch (e) { + timeScope = form.value.scene.timeScope.replace("time_scope_", "") + } if (timeScope == '') { proxy.$global.showMsg("请选择时间范围!", "warning"); return; diff --git a/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/index.html b/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/index.html index 95a9db8..1a37d4c 100644 --- a/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/index.html +++ b/hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/index.html @@ -7,9 +7,8 @@ <div class="analysis-index-container" style="display: grid;"> <img src="/vue3/src/assets/images/analysis/icon-add.png" style="margin-left: 20px;"></img> <span style="text-align: center;line-height: 50px;color: #0C4493">点击添加对比分析</span> - </div> </router-link> </div> -</div> \ No newline at end of file +</div>