add nexTcik

This commit is contained in:
Pan 2018-09-11 13:38:03 +08:00
parent 28a0bc1856
commit 02e88cf15f
1 changed files with 5 additions and 3 deletions

View File

@ -32,10 +32,12 @@ export default {
// In order to make the cached page re-rendered // In order to make the cached page re-rendered
this.$store.dispatch('delAllCachedViews', this.$route) this.$store.dispatch('delAllCachedViews', this.$route)
const { path } = this.$route const { fullPath } = this.$route
this.$nextTick(() => {
this.$router.replace({ this.$router.replace({
path: '/redirect' + path path: '/redirect' + fullPath
})
}) })
} }
} }