From 0fd1857ae27f343547e2f78332bdc8facd2302a6 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 19 Feb 2024 17:22:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E5=B5=8C=E5=85=A5=E6=94=AF=E6=8C=81=20iframe=20?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/dashboard/DbToolbar.vue | 9 ++--- .../data-visualization/DvToolbar.vue | 9 ++--- core/core-frontend/src/store/modules/app.ts | 8 ++++ .../src/views/chart/ChartView.vue | 39 ++++++++++++++++++- .../editor/dataset-select/DatasetSelect.vue | 17 ++------ .../editor/editor-senior/Senior.vue | 9 ++--- .../views/chart/components/editor/index.vue | 8 ++-- .../views/components/ChartComponentG2Plot.vue | 5 ++- .../views/components/ChartComponentS2.vue | 5 ++- .../views/visualized/data/dataset/index.vue | 3 +- .../visualized/data/datasource/index.vue | 3 +- 11 files changed, 74 insertions(+), 41 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index 13068f522a..90a8e4ad5b 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -2,8 +2,9 @@ import { ElMessage, ElMessageBox } from 'element-plus-secondary' import eventBus from '@/utils/eventBus' import { deepCopy } from '@/utils/utils' -import { nextTick, reactive, ref, computed, onMounted } from 'vue' +import { nextTick, reactive, ref, computed } from 'vue' import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' +import { useAppStoreWithOut } from '@/store/modules/app' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' import { storeToRefs } from 'pinia' import Icon from '../icon-custom/src/Icon.vue' @@ -307,10 +308,8 @@ const saveLinkageSetting = () => { const onDvNameChange = () => { snapshotStore.recordSnapshotCache() } -const isDataEaseBi = ref(false) -onMounted(() => { - isDataEaseBi.value = !!window.DataEaseBi -}) +const appStore = useAppStoreWithOut() +const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)