diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue index 3f73673e..0e428a23 100644 --- a/src/components/SizeSelect/index.vue +++ b/src/components/SizeSelect/index.vue @@ -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 + }) }) } } diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 2bb83b41..793cc698 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -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 + }) }) }) },