fix刷新标签页空白问题

This commit is contained in:
不做码农
2022-05-25 14:43:13 +08:00
parent c1896bb01d
commit 1dce2479b0
3 changed files with 18 additions and 16 deletions
+6 -8
View File
@@ -1,6 +1,6 @@
import store from '@/store'
import router from '@/router'
import { nextTick } from 'vue'
export default {
// 刷新当前tab页签
refreshPage(obj) {
@@ -14,13 +14,11 @@ export default {
}
});
}
store.dispatch('tagsView/delCachedView', obj).then(() => {
const { fullPath, query } = obj
nextTick(() => {
router.replace({
path: '/redirect' + fullPath,
query: query
})
return store.dispatch('tagsView/delCachedView', obj).then(() => {
const { path, query } = obj
router.replace({
path: '/redirect' + path,
query: query
})
})
},