Commit 500be4159ac4f48b0c43cccf9347f0408a7a03ae
1 parent
771ef12d
fix(share): DEFECT-1129 分享页面未设置大屏标题
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -21,7 +21,7 @@ import { NModal, NCard, NForm, NFormItem, NInput, NButton, } from 'naive-ui' | @@ -21,7 +21,7 @@ import { NModal, NCard, NForm, NFormItem, NInput, NButton, } from 'naive-ui' | ||
21 | import { getSessionStorageInfo } from '../preview/utils' | 21 | import { getSessionStorageInfo } from '../preview/utils' |
22 | import type { ChartEditStorageType } from '../preview/index.d' | 22 | import type { ChartEditStorageType } from '../preview/index.d' |
23 | import { SavePageEnum } from '@/enums/editPageEnum' | 23 | import { SavePageEnum } from '@/enums/editPageEnum' |
24 | -import { JSONParse, setSessionStorage } from '@/utils' | 24 | +import { JSONParse, setSessionStorage, setTitle } from '@/utils' |
25 | import { StorageEnum } from '@/enums/storageEnum' | 25 | import { StorageEnum } from '@/enums/storageEnum' |
26 | import { onMounted, ref, unref } from 'vue' | 26 | import { onMounted, ref, unref } from 'vue' |
27 | import Preview from '../preview/index.vue' | 27 | import Preview from '../preview/index.vue' |
@@ -77,6 +77,7 @@ const getSharePageContentData = async () => { | @@ -77,6 +77,7 @@ const getSharePageContentData = async () => { | ||
77 | chartEditStore.requestGlobalConfig = requestGlobalConfig | 77 | chartEditStore.requestGlobalConfig = requestGlobalConfig |
78 | chartEditStore.componentList = componentList | 78 | chartEditStore.componentList = componentList |
79 | } | 79 | } |
80 | + setTitle(dataViewName || '') | ||
80 | showModal.value = false | 81 | showModal.value = false |
81 | allowLoadPreviewPage.value = false | 82 | allowLoadPreviewPage.value = false |
82 | } catch (error) { | 83 | } catch (error) { |