From e1c9fb5b55403d855bb3cea531525af4aa81212d Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 28 Nov 2024 16:06:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=96=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E4=B8=8D=E8=B7=9F=E9=9A=8F=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/dashboard/DbToolbar.vue | 3 +-- .../core-frontend/src/views/data-visualization/PreviewHead.vue | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index a50e549b17..49731a7ff0 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -139,8 +139,7 @@ const previewOuter = () => { } canvasSave(() => { const url = '#/preview?dvId=' + dvInfo.value.id + '&ignoreParams=true' - const openType = wsCache.get('open-backend') === '1' ? '_self' : '_blank' - const newWindow = window.open(url, openType) + const newWindow = window.open(url, '_blank') initOpenHandler(newWindow) }) } diff --git a/core/core-frontend/src/views/data-visualization/PreviewHead.vue b/core/core-frontend/src/views/data-visualization/PreviewHead.vue index 91477dd1a0..5ff4851a41 100644 --- a/core/core-frontend/src/views/data-visualization/PreviewHead.vue +++ b/core/core-frontend/src/views/data-visualization/PreviewHead.vue @@ -34,7 +34,7 @@ const favorited = ref(false) const preview = () => { const baseUrl = isDataEaseBi.value ? embeddedStore.baseUrl : '' const url = baseUrl + '#/preview?dvId=' + dvInfo.value.id + '&ignoreParams=true' - const newWindow = window.open(url, openType) + const newWindow = window.open(url, '_blank') initOpenHandler(newWindow) } const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)