diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 2bb83b41..eafad8cb 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -89,10 +89,11 @@ 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 + }) + }) }) }, closeSelectedTag(view) {