parent
9c03dd3514
commit
0740bb36f7
|
@ -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.$router.replace({
|
this.$nextTick(() => {
|
||||||
path: '/redirect' + path
|
this.$router.replace({
|
||||||
|
path: '/redirect' + fullPath
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,9 +89,10 @@ 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
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue