forked from opentiny/tiny-engine
fix: 修复无页面时页面内容显示错误问题 (#31)
This commit is contained in:
parent
364160f977
commit
8be11f2075
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue