From 2ef24cc06e1212ebf88fa82fb1302b8e7bb57e29 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 14 May 2025 11:24:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=95=B0=E6=8D=AE=E9=9B=86=E5=92=8C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E9=9B=86=E6=97=B6=E9=A1=B5=E9=9D=A2=E6=97=A0=E5=93=8D=E5=BA=94?= =?UTF-8?q?=EF=BC=8C=E6=8E=A7=E5=88=B6=E5=8F=B0=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/visualized/data/dataset/form/index.vue | 7 ++++++- .../src/views/visualized/data/datasource/index.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue index fb5d2a622e..c90af98717 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/form/index.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/form/index.vue @@ -86,7 +86,12 @@ const appStore = useAppStoreWithOut() const embeddedStore = useEmbedded() const { t } = useI18n() const route = useRoute() -const { push } = useRouter() +const { push } = useRouter() || { + push: val => { + if (embeddedStore.getToken) return + window.location.href = val as string + } +} const quotaTableHeight = ref(238) const creatDsFolder = ref() const editCalcField = ref(false) diff --git a/core/core-frontend/src/views/visualized/data/datasource/index.vue b/core/core-frontend/src/views/visualized/data/datasource/index.vue index 921b64607f..cea4067e38 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/index.vue @@ -1051,7 +1051,7 @@ onMounted(() => { loadInit() listDs() setSupportSetKey() - const { opt } = router.currentRoute.value.query + const { opt } = router?.currentRoute?.value?.query || {} if (opt && opt === 'create') { datasourceEditor.value.init(null, null, null, isSupportSetKey.value) }