refactor(routers): ♻️ 去除多余的ts断言

This commit is contained in:
cshaptx4869 2024-03-12 11:05:21 +08:00
parent 8b9502cea0
commit cd9af80dd0
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 }),
});