refactor(routers): ♻️ 去除多余的ts断言
This commit is contained in:
@@ -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 }),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user