We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8502e0b commit 512a160Copy full SHA for 512a160
packages/plugins/materials/src/composable/useResource.ts
@@ -80,7 +80,8 @@ interface PageInfo {
80
81
const initPage = (pageInfo: PageInfo) => {
82
try {
83
- if (pageInfo?.occupier !== undefined) {
+ // 有id,说明不是临时的页面
84
+ if (pageInfo?.id || typeof pageInfo?.id === 'number') {
85
useLayout().layoutState.pageStatus = getCanvasStatus(pageInfo.occupier)
86
goPage(pageInfo.id)
87
} else {
0 commit comments