|
@@ -123,10 +123,20 @@ const commonMixin = {
|
|
const cache = parentNode&&parentNode.componentInstance?parentNode.componentInstance.cache:null
|
|
const cache = parentNode&&parentNode.componentInstance?parentNode.componentInstance.cache:null
|
|
const keys = parentNode&&parentNode.componentInstance?parentNode.componentInstance.keys:null
|
|
const keys = parentNode&&parentNode.componentInstance?parentNode.componentInstance.keys:null
|
|
const closeTabPages = this.$store.state.app.closeTabPages
|
|
const closeTabPages = this.$store.state.app.closeTabPages
|
|
|
|
+ const multiTab = this.$store.state.app.multiTab
|
|
// console.log(closeTabPages,key)
|
|
// console.log(closeTabPages,key)
|
|
// 清空同级路由的组件缓存
|
|
// 清空同级路由的组件缓存
|
|
if(hasChildren&&(oa||ob||oc||oxt)&&cache&&keys){
|
|
if(hasChildren&&(oa||ob||oc||oxt)&&cache&&keys){
|
|
this.clearCompCache(cache,keys,key)
|
|
this.clearCompCache(cache,keys,key)
|
|
|
|
+ // 单页签模式
|
|
|
|
+ if(!multiTab){
|
|
|
|
+ this.$store.state.app.isNewTab = false
|
|
|
|
+ this.$store.state.app.updateList = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // 单页签模式,并且不是同级菜单的清空组件
|
|
|
|
+ if(!multiTab&&!hasChildren){
|
|
|
|
+ this.clearCompCache(cache,keys,key)
|
|
}
|
|
}
|
|
// 批量清空组件缓存
|
|
// 批量清空组件缓存
|
|
if(closeTabPages.length&&cache&&keys){
|
|
if(closeTabPages.length&&cache&&keys){
|