fix(store): 修复 keepAliveRemove 操作后不能恢复页面缓存的 bug 以及相关 demo 页面

This commit is contained in:
FairyEver
2020-04-22 10:22:17 +08:00
parent ab0baf3f3c
commit d249c86406
2 changed files with 11 additions and 6 deletions

View File

@@ -83,7 +83,7 @@ export default {
},
// 清空当前页缓存并刷新此页面
async handleCleanCacheAndRefreshCurrent () {
this.keepAliveRemove(this.$route.fullPath)
this.keepAliveRemove(this.$route.name)
await this.$nextTick()
this.$router.replace('/refresh')
},