Merge pull request #56 from cshaptx4869/patch-27
refactor(routers): ♻️ 去除多余的ts断言
This commit is contained in:
commit
7f0402f03d
|
|
@ -112,7 +112,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||
*/
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes: constantRoutes as RouteRecordRaw[],
|
||||
routes: constantRoutes,
|
||||
// 刷新时,滚动条位置还原
|
||||
scrollBehavior: () => ({ left: 0, top: 0 }),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue