This commit is contained in:
qsh
2024-08-28 10:09:23 +08:00
parent 5eccb83e3f
commit 076f301920
4 changed files with 92 additions and 1 deletions

View File

@@ -14,7 +14,15 @@ const { start, done } = useNProgress()
const { loadStart, loadDone } = usePageLoading()
// 路由不重定向白名单
const whiteList = ['/login', '/social-login', '/auth-redirect', '/bind', '/register', '/swagger']
const whiteList = [
'/login',
'/mp-login',
'/social-login',
'/auth-redirect',
'/bind',
'/register',
'/swagger'
]
// 路由加载前
router.beforeEach(async (to, from, next) => {