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 => {