优化页面按钮显示的逻辑

This commit is contained in:
季圣华
2022-01-09 20:25:24 +08:00
parent ae77bf873a
commit b7ef95ab0c
3 changed files with 3 additions and 11 deletions

View File

@@ -122,8 +122,6 @@
let oldIndex = this.linkList.indexOf(newRoute.fullPath)
let oldPositionRoute = this.pageList[oldIndex]
this.pageList.splice(oldIndex, 1, Object.assign({},newRoute,{meta:oldPositionRoute.meta}))
//给菜单id赋值用于调用之后控制按钮的显示
Vue.ls.set('funId', oldPositionRoute.meta.id, 7 * 24 * 60 * 60 * 1000)
}
},
'activePage': function(key) {