页面路由跳转返回后数据回显,记住原先的状态
This commit is contained in:
@@ -20,7 +20,8 @@ export default {
|
||||
return this.$store.state.tagsView.cachedViews
|
||||
},
|
||||
key() {
|
||||
return this.$route.path
|
||||
// 包含 query 参数,确保带参数的路由能正确刷新组件
|
||||
return this.$route.fullPath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user