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 81baa12 commit 944a411Copy full SHA for 944a411
packages/plugins/materials/src/composable/useResource.ts
@@ -79,7 +79,8 @@ interface PageInfo {
79
80
const initPage = (pageInfo: PageInfo) => {
81
try {
82
- if (pageInfo?.occupier) {
+ // 有id,说明不是临时的页面
83
+ if (pageInfo?.id || typeof pageInfo?.id === 'number') {
84
useLayout().layoutState.pageStatus = getCanvasStatus(pageInfo.occupier)
85
goPage(pageInfo.id)
86
} else {
0 commit comments