From f621d342635d3a0277d4e863475eaa4c4560adee Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 24 Dec 2024 14:18:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E4=BB=AA=E8=A1=A8=E6=9D=BF=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=EF=BC=8C=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=82=B9=E5=87=BB=E6=96=B0=E9=A1=B5=E9=9D=A2=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E6=8A=A5=E9=94=99404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/components/dashboard/DbToolbar.vue | 2 +- core/core-frontend/src/views/share/share/ShareGrid.vue | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/DbToolbar.vue b/core/core-frontend/src/components/dashboard/DbToolbar.vue index bd35b336ff..f11063b23d 100644 --- a/core/core-frontend/src/components/dashboard/DbToolbar.vue +++ b/core/core-frontend/src/components/dashboard/DbToolbar.vue @@ -142,7 +142,7 @@ const previewOuter = () => { canvasSave(() => { let url = '#/preview?dvId=' + dvInfo.value.id + '&ignoreParams=true' if (embeddedStore.baseUrl) { - url = `${embedded.baseUrl}${url}`.replaceAll('\/\/#', '\/#') + url = `${embeddedStore.baseUrl}${url}`.replaceAll('\/\/#', '\/#') } const newWindow = window.open(url, '_blank') initOpenHandler(newWindow) diff --git a/core/core-frontend/src/views/share/share/ShareGrid.vue b/core/core-frontend/src/views/share/share/ShareGrid.vue index 49141599b5..2ade366866 100644 --- a/core/core-frontend/src/views/share/share/ShareGrid.vue +++ b/core/core-frontend/src/views/share/share/ShareGrid.vue @@ -10,7 +10,6 @@ import { useI18n } from '@/hooks/web/useI18n' import { ref, reactive, watch, computed } from 'vue' import GridTable from '@/components/grid-table/src/GridTable.vue' import request from '@/config/axios' -import { useEmbedded } from '@/store/modules/embedded' import dayjs from 'dayjs' import { propTypes } from '@/utils/propTypes' import ShareHandler from './ShareHandler.vue' @@ -24,7 +23,6 @@ const props = defineProps({ const { wsCache } = useCache('localStorage') const { t } = useI18n() const interactiveStore = interactiveStoreWithOut() -const embeddedStore = useEmbedded() const busiDataMap = computed(() => interactiveStore.getData) const panelKeyword = ref() @@ -49,9 +47,6 @@ const triggerFilterPanel = () => { } const preview = id => { const routeUrl = `/#/preview?dvId=${id}` - if (embeddedStore.baseUrl) { - routeUrl = `${embedded.baseUrl}${routeUrl}`.replaceAll('\/\/#', '\/#') - } window.open(routeUrl, '_blank') } const formatterTime = (_, _column, cellValue) => {