diff --git a/src/router/index.ts b/src/router/index.ts index a27cdfc..2ee500a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -287,7 +287,7 @@ export function resetRouter() { router.hasRoute(name) && router.removeRoute(name) } }) - } catch (error) { + } catch { // 强制刷新浏览器也行,只是交互体验不是很好 window.location.reload() }