修复keepalive问题 #934 #903,调整刷新功能,增加页面跳转动画。

This commit is contained in:
piexlmax
2022-03-01 12:40:56 +08:00
parent d9a53805ee
commit f747e01285
8 changed files with 45 additions and 14 deletions
@@ -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 = () => {