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 }), });