refactor: 更换 ESLint 配置为 @antfu/eslint-config

This commit is contained in:
2024-05-10 22:29:45 +08:00
parent 5101dd12d9
commit bfc8e42bad
148 changed files with 7314 additions and 5046 deletions

View File

@@ -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 {