From 4eac2b928e56ceb71fa1d46f5ccd586356171f0f Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 20 Jul 2023 18:11:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/panelChart.vue | 6 +----- nezha-fronted/src/components/page/dashboard/dashboard.vue | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/nezha-fronted/src/components/chart/panelChart.vue b/nezha-fronted/src/components/chart/panelChart.vue index f674d674e..fe2df651d 100644 --- a/nezha-fronted/src/components/chart/panelChart.vue +++ b/nezha-fronted/src/components/chart/panelChart.vue @@ -111,10 +111,6 @@ export default { type: Boolean, default: true }, - timerInit: { - type: Boolean, - default: true - }, hiddenText: { // 隐藏图表的悬浮文字 type: String } @@ -169,7 +165,7 @@ export default { }, // 参数 isRefresh 标识是否是刷新操作 getChartData (isRefresh, params) { // 获取chart的数据前的准备 主要用于处理时间参数 - if (!this.variablesInit || !this.timerInit) { // 变量未加载完成 不请求数据 + if (!this.variablesInit) { // 变量未加载完成 不请求数据 return } this.chartData = window.dataJson ? this.chartData : [] diff --git a/nezha-fronted/src/components/page/dashboard/dashboard.vue b/nezha-fronted/src/components/page/dashboard/dashboard.vue index 9aab4e46e..f5711fa4a 100644 --- a/nezha-fronted/src/components/page/dashboard/dashboard.vue +++ b/nezha-fronted/src/components/page/dashboard/dashboard.vue @@ -103,7 +103,6 @@