修复keepalive问题 #934 #903,调整刷新功能,增加页面跳转动画。
This commit is contained in:
@@ -247,16 +247,13 @@ watch(contextMenuVisible, () => {
|
||||
})
|
||||
|
||||
watch(route, (to, now) => {
|
||||
if (to.name === 'Login') {
|
||||
if (to.name === 'Login' || to.name === 'Reload') {
|
||||
return
|
||||
}
|
||||
historys.value = historys.value.filter((item) => !item.meta.closeTab)
|
||||
setTab(to)
|
||||
sessionStorage.setItem('historys', JSON.stringify(historys.value))
|
||||
activeValue.value = window.sessionStorage.getItem('activeValue')
|
||||
if (now && to && now.name === to.name) {
|
||||
emitter.emit('reload')
|
||||
}
|
||||
})
|
||||
|
||||
const initPage = () => {
|
||||
|
||||
Reference in New Issue
Block a user