mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-20 22:57:43 +08:00
refactor: 更换 ESLint 配置为 @antfu/eslint-config
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import router from '@/router'
|
||||
import { useUserStore, useRouteStore } from '@/stores'
|
||||
import { useRouteStore, useUserStore } from '@/stores'
|
||||
import { getToken } from '@/utils/auth'
|
||||
import { isHttp } from '@/utils/validate'
|
||||
|
||||
@@ -46,7 +46,7 @@ router.beforeEach(async (to, from, next) => {
|
||||
}
|
||||
} else {
|
||||
// 如果没有 Token
|
||||
if (whiteList.indexOf(to.path) !== -1) {
|
||||
if (whiteList.includes(to.path)) {
|
||||
// 如果在免登录的白名单中,则直接进入
|
||||
next()
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user