Skip to content

Commit ace0cb3

Browse files
committed
fix(bugs-2.7.x): 修改被他人锁定页面的判断逻辑
1 parent a577b6a commit ace0cb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const initPageOrBlock = async () => {
137137
const getPageInfo = () => {
138138
// 页面是否被他人锁定
139139
const isPageOccupierdByOthers = (page) => {
140-
return page.meta?.occupier?.id !== globalState.userInfo.id
140+
return page.meta?.occupier && page.meta.occupier.id !== globalState.userInfo.id
141141
}
142142
// 首页
143143
const homePage = appSchemaState.pageTree.find((page) => page?.meta?.isHome)

0 commit comments

Comments
 (0)