refactor: vue3

This commit is contained in:
xingyu
2022-07-19 23:03:10 +08:00
parent 9e2e220b69
commit b3913a86f8
5 changed files with 17 additions and 6 deletions

View File

@ -29,7 +29,7 @@ const router = createRouter({
scrollBehavior: () => ({ left: 0, top: 0 })
})
// 路由白名单
// 路由不重定向白名单
const whiteList = [
'/login',
'/social-login',
@ -96,7 +96,6 @@ export const resetRouter = (): void => {
router.hasRoute(name) && router.removeRoute(name)
}
})
routes: remainingRouter as RouteRecordRaw[]
}
export const setupRouter = (app: App<Element>) => {