Skip to content

Commit 944a411

Browse files
authored
fix: unlock page and refresh will get empty page tips (#1535)
1 parent 81baa12 commit 944a411

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
@@ -79,7 +79,8 @@ interface PageInfo {
7979

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

0 commit comments

Comments
 (0)