提交 0740bb36 编写于 作者: J jiuwuxiaohun 提交者: 花裤衩

fix[tagsView]: refresh bug (#1059)

#1051
上级 9c03dd35
......@@ -32,10 +32,12 @@ export default {
// In order to make the cached page re-rendered
this.$store.dispatch('delAllCachedViews', this.$route)
const { path } = this.$route
const { fullPath } = this.$route
this.$router.replace({
path: '/redirect' + path
this.$nextTick(() => {
this.$router.replace({
path: '/redirect' + fullPath
})
})
}
}
......
......@@ -89,9 +89,10 @@ export default {
refreshSelectedTag(view) {
this.$store.dispatch('delCachedView', view).then(() => {
const { fullPath } = view
this.$router.replace({
path: '/redirect' + fullPath
this.$nextTick(() => {
this.$router.replace({
path: '/redirect' + fullPath
})
})
})
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册