From c8ec6372cb94616400eecf325aeec52c17a85a85 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 11 Jan 2022 11:20:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts/Chart.vue | 14 ++++++++------ src/views/entityExplorer/entityList/Row.vue | 2 +- .../entityList/detailOverview/entityDetailMixin.js | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/charts/Chart.vue b/src/views/charts/Chart.vue index 58d81c9f..ab297c69 100644 --- a/src/views/charts/Chart.vue +++ b/src/views/charts/Chart.vue @@ -2294,9 +2294,11 @@ export default { } }, mounted () { - this.initChart() - this.throttle = this.$_.throttle(this.echartsResize, 500) - window.addEventListener('resize', this.throttle) + setTimeout(() => { + this.initChart() + this.throttle = this.$_.throttle(this.echartsResize, 500) + window.addEventListener('resize', this.throttle) + }, 300) }, watch: { chart: { @@ -2304,7 +2306,7 @@ export default { deep: true, handler (n, o) { if (o) { - this.initChart() + setTimeout(() => { this.initChart() }) } } }, @@ -2315,7 +2317,7 @@ export default { if (n && o) { this.standaloneTimeRange.use = false this.$nextTick(() => { - this.initChart() + setTimeout(() => { this.initChart() }) }) } } @@ -2326,7 +2328,7 @@ export default { handler (n, o) { if (n) { this.$nextTick(() => { - this.initChart() + setTimeout(() => { this.initChart() }) }) } } diff --git a/src/views/entityExplorer/entityList/Row.vue b/src/views/entityExplorer/entityList/Row.vue index 0c5a9383..809ffbd0 100644 --- a/src/views/entityExplorer/entityList/Row.vue +++ b/src/views/entityExplorer/entityList/Row.vue @@ -93,7 +93,7 @@ -
+
{ this.queryEntityDetail() }) + // setTimeout(() => { this.queryEntityDetail() }) } } }