Merge pull request #56 from cshaptx4869/patch-27

refactor(routers): ♻️ 去除多余的ts断言
This commit is contained in:
Ray Hao
2024-03-12 13:33:20 +08:00
committed by GitHub

View File

@@ -112,7 +112,7 @@ export const constantRoutes: RouteRecordRaw[] = [
*/ */
const router = createRouter({ const router = createRouter({
history: createWebHashHistory(), history: createWebHashHistory(),
routes: constantRoutes as RouteRecordRaw[], routes: constantRoutes,
// 刷新时,滚动条位置还原 // 刷新时,滚动条位置还原
scrollBehavior: () => ({ left: 0, top: 0 }), scrollBehavior: () => ({ left: 0, top: 0 }),
}); });