修正Tags点击刷新按钮页面仍可能被缓存的问题
This commit is contained in:
@@ -89,10 +89,11 @@ export default {
|
|||||||
refreshSelectedTag(view) {
|
refreshSelectedTag(view) {
|
||||||
this.$store.dispatch('delCachedView', view).then(() => {
|
this.$store.dispatch('delCachedView', view).then(() => {
|
||||||
const { fullPath } = view
|
const { fullPath } = view
|
||||||
|
this.$nextTick(() => {
|
||||||
this.$router.replace({
|
this.$router.replace({
|
||||||
path: '/redirect' + fullPath
|
path: '/redirect' + fullPath
|
||||||
})
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
closeSelectedTag(view) {
|
closeSelectedTag(view) {
|
||||||
|
Reference in New Issue
Block a user