diff --git a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue index 6d1af1a694..dd600d7cf1 100644 --- a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue +++ b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue @@ -216,7 +216,6 @@ onMounted(async () => { return } dvMainStore.setEmbeddedCallBack(callBackFlag || 'no') - dvMainStore.setPublicLinkStatus(props.publicLinkStatus) }) const dataVKeepSize = computed(() => { diff --git a/core/core-frontend/src/views/share/link/index.vue b/core/core-frontend/src/views/share/link/index.vue index e64e4ba096..9fdd77b65b 100644 --- a/core/core-frontend/src/views/share/link/index.vue +++ b/core/core-frontend/src/views/share/link/index.vue @@ -39,9 +39,11 @@ import PwdTips from './pwd.vue' import ErrorTemplate from './ErrorTemplate.vue' import { useLinkStoreWithOut } from '@/store/modules/link' import { useI18n } from '@/hooks/web/useI18n' +import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' const linkStore = useLinkStoreWithOut() const requestStore = useRequestStoreWithOut() const permissionStore = usePermissionStoreWithOut() +const dvMainStore = dvMainStoreWithOut() const pcanvas = ref(null) const iframeError = ref(true) const disableError = ref(true) @@ -101,6 +103,7 @@ onMounted(async () => { } loading.value = false }) + dvMainStore.setPublicLinkStatus(true) }) onBeforeUnmount(() => { linkStore.$reset()