Skip to content

Commit 512a160

Browse files
authored
fix: unlock page and refresh will get empty page tips (#1534)
1 parent 8502e0b commit 512a160

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/plugins/materials/src/composable/useResource.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ interface PageInfo {
8080

8181
const initPage = (pageInfo: PageInfo) => {
8282
try {
83-
if (pageInfo?.occupier !== undefined) {
83+
// 有id,说明不是临时的页面
84+
if (pageInfo?.id || typeof pageInfo?.id === 'number') {
8485
useLayout().layoutState.pageStatus = getCanvasStatus(pageInfo.occupier)
8586
goPage(pageInfo.id)
8687
} else {

0 commit comments

Comments
 (0)