From 97b9f9bfe3ea1d2e691a8a1a629e1336dc01b7a1 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 1 Jul 2024 21:13:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20div?= =?UTF-8?q?=E5=B5=8C=E5=85=A5=E5=BC=8F=E5=88=9B=E5=BB=BA=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/share/share/ShareHandler.vue | 7 ++++--- .../src/views/share/share/ShareVisualHead.vue | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/core-frontend/src/views/share/share/ShareHandler.vue b/core/core-frontend/src/views/share/share/ShareHandler.vue index 96d4dc9b59..10283cdf62 100644 --- a/core/core-frontend/src/views/share/share/ShareHandler.vue +++ b/core/core-frontend/src/views/share/share/ShareHandler.vue @@ -150,7 +150,8 @@ import { ShareInfo, SHARE_BASE, shortcuts } from './option' import { ElMessage, ElLoading } from 'element-plus-secondary' import useClipboard from 'vue-clipboard3' import ShareTicket from './ShareTicket.vue' - +import { useEmbedded } from '@/store/modules/embedded' +const embeddedStore = useEmbedded() const { toClipboard } = useClipboard() const { t } = useI18n() const props = defineProps({ @@ -311,8 +312,8 @@ const formatLinkAddr = () => { } const formatLinkBase = () => { let prefix = '/' - if (window.DataEaseBi?.baseUrl) { - prefix = window.DataEaseBi.baseUrl + '#' + if (embeddedStore.baseUrl) { + prefix = embeddedStore.baseUrl + '#' } else { const href = window.location.href prefix = href.substring(0, href.indexOf('#') + 1) diff --git a/core/core-frontend/src/views/share/share/ShareVisualHead.vue b/core/core-frontend/src/views/share/share/ShareVisualHead.vue index 6ad0ddbdd4..050e073c1a 100644 --- a/core/core-frontend/src/views/share/share/ShareVisualHead.vue +++ b/core/core-frontend/src/views/share/share/ShareVisualHead.vue @@ -143,7 +143,8 @@ import { ShareInfo, SHARE_BASE, shortcuts } from './option' import { ElMessage, ElLoading } from 'element-plus-secondary' import useClipboard from 'vue-clipboard3' import ShareTicket from './ShareTicket.vue' - +import { useEmbedded } from '@/store/modules/embedded' +const embeddedStore = useEmbedded() const { toClipboard } = useClipboard() const { t } = useI18n() const props = defineProps({ @@ -282,8 +283,8 @@ const formatLinkAddr = () => { } const formatLinkBase = () => { let prefix = '/' - if (window.DataEaseBi?.baseUrl) { - prefix = window.DataEaseBi.baseUrl + '#' + if (embeddedStore.baseUrl) { + prefix = embeddedStore.baseUrl + '#' } else { const href = window.location.href prefix = href.substring(0, href.indexOf('#') + 1)