diff --git a/src/plugins/tab.ts b/src/plugins/tab.ts index 0475f98..5c5d51b 100644 --- a/src/plugins/tab.ts +++ b/src/plugins/tab.ts @@ -5,6 +5,10 @@ export default { // 刷新当前tab页签 refreshPage(obj?: any) { const { path, query, matched } = router.currentRoute.value + // 防止在重定向过程中重复刷新 + if (path.startsWith('/redirect/')) { + return Promise.resolve() + } if (obj === undefined) { matched.forEach((m: any) => { if (m.components && m.components.default && m.components.default.name) {