bug: fix the problem that page content become blank when modifying the code; 🐛 #141
修复:修改代码时页面内容变为空白的问题;
This commit is contained in:
@@ -261,7 +261,8 @@ export default {
|
||||
const page = this.pageList.find(item => item.fullPath === route.fullPath)
|
||||
page.unclose = route.meta && route.meta.page && (route.meta.page.closable === false)
|
||||
if (!page._init_) {
|
||||
page.cachedKey = this.$refs.tabContent.$vnode.key
|
||||
const vnode = this.$refs.tabContent.$vnode
|
||||
page.cachedKey = vnode.key + vnode.componentOptions.Ctor.cid
|
||||
page._init_ = true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user