From a4a64ac43afa11aeee385f786bce7333bcb77bdf Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Thu, 4 Jul 2024 00:56:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/views/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 6ba9608d69..f33ecc7afd 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -46,11 +46,14 @@ import ChartEmptyInfo from '@/views/chart/components/views/components/ChartEmpty import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' import { viewFieldTimeTrans } from '@/utils/viewUtils' import { CHART_TYPE_CONFIGS } from '@/views/chart/components/editor/util/chart' +import request from '@/config/axios' +import { store } from '@/store' const { wsCache } = useCache() const chartComponent = ref() const { t } = useI18n() const dvMainStore = dvMainStoreWithOut() +const { emitter } = useEmitt() let innerRefreshTimer = null const appStore = useAppStoreWithOut() @@ -495,7 +498,7 @@ const calcData = params => { const showChartView = (...libs: ChartLibraryType[]) => { if (view.value?.render && view.value?.type) { const chartView = chartViewManager.getChartView(view.value.render, view.value.type) - return libs?.includes(chartView.library) + return chartView && libs?.includes(chartView.library) } else { return false } @@ -825,13 +828,16 @@ const loadPluginCategory = data => {