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
commit 7f0402f03d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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