From e09f40840a88e5d310387c349f152bba3434906f Mon Sep 17 00:00:00 2001 From: jiuwuxiaohun <31701393+jiuwuxiaohun@users.noreply.github.com> Date: Thu, 6 Sep 2018 14:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Tags=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=8C=89=E9=92=AE=E9=A1=B5=E9=9D=A2=E4=BB=8D?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E8=A2=AB=E7=BC=93=E5=AD=98=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/layout/components/TagsView.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) {