Commit 3b23acae5ec55287e82fa1df22a18cef4217c113
Merge branch 'fix/data-view-embed' into 'main_dev'
fix: 修复大屏内嵌组态,公开大屏未携带公开的大屏token See merge request yunteng/thingskit-scada!190
Showing
3 changed files
with
5 additions
and
3 deletions
| ... | ... | @@ -11,7 +11,8 @@ import { MessageEnum } from '@/enums/messageEnum' |
| 11 | 11 | |
| 12 | 12 | export function useContentData() { |
| 13 | 13 | const contentDataStore = useContentDataStoreWithOut() |
| 14 | - const { mode, publicId, configurationId, userId } = useParseParams() | |
| 14 | + const params = useParseParams() | |
| 15 | + const { mode, publicId, configurationId, userId } = params | |
| 15 | 16 | const userStore = useUserStoreWithOut() |
| 16 | 17 | const { createMessage } = useMessage() |
| 17 | 18 | ... | ... |
| ... | ... | @@ -52,6 +52,6 @@ export function isDesignMode(): boolean { |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | export function isShareMode(): boolean { |
| 55 | - const { mode } = useParseParams() | |
| 56 | - return mode === PageModeEnum.SHARE | |
| 55 | + const { mode, parentPageIsPublic } = useParseParams() | |
| 56 | + return mode === PageModeEnum.SHARE || !!parentPageIsPublic | |
| 57 | 57 | } | ... | ... |