From 3acb65d42c39b3ebe1f58d7347ab68076941e2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E4=B8=87?= <52823142+Ten-K@users.noreply.github.com> Date: Sat, 27 Nov 2021 16:38:18 +0800 Subject: [PATCH] perf: router (#133) --- 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 8980e85b4..32b69f8a1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -134,7 +134,7 @@ export const addAsyncRoutes = (arrRoutes: Array) => { // 创建路由实例 export const router: Router = createRouter({ history: createWebHashHistory(), - routes: filterTree(ascending(constantRoutes)).concat(...remainingRouter), + routes: ascending(constantRoutes).concat(...remainingRouter), scrollBehavior(to, from, savedPosition) { return new Promise(resolve => { if (savedPosition) {