From b2da13b34a4582c7b8b40bf3c9996794241bc07a Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Thu, 1 Jun 2023 09:26:53 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?router/index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }