From cd9af80dd04c458200f04b62f034a9ce51fe403e Mon Sep 17 00:00:00 2001 From: cshaptx4869 <994774638@qq.com> Date: Tue, 12 Mar 2024 11:05:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(routers):=20:recycle:=20=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84ts=E6=96=AD=E8=A8=80?= 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 17a249a..b67fdf5 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -112,7 +112,7 @@ export const constantRoutes: RouteRecordRaw[] = [ */ const router = createRouter({ history: createWebHashHistory(), - routes: constantRoutes as RouteRecordRaw[], + routes: constantRoutes, // 刷新时,滚动条位置还原 scrollBehavior: () => ({ left: 0, top: 0 }), });