fix: 修复无页面时页面内容显示错误问题 (#31)

This commit is contained in:
gargameljyh 2023-11-01 17:00:15 +08:00 committed by GitHub
parent 364160f977
commit 8be11f2075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -173,7 +173,12 @@ export default {
const switchPage = (data) => {
pageState.hoverVm = null
state.currentNodeData = data
setBreadcrumbPage([data?.name || 'untitle'])
let pageName = 'untitle'
if (data.isPage) {
pageName = data?.name || 'untitle'
}
setBreadcrumbPage([pageName])
//
clearCurrentState()