1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 21:30:14 +08:00

修正Tags点击刷新按钮页面仍可能被缓存的问题

This commit is contained in:
jiuwuxiaohun 2018-09-06 14:53:38 +08:00 committed by GitHub
parent 14e693339c
commit e09f40840a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,11 @@ 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
}) })
})
}) })
}, },
closeSelectedTag(view) { closeSelectedTag(view) {