mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-10-31 10:57:10 +08:00 
			
		
		
		
	refactor: 更换 ESLint 配置为 @antfu/eslint-config
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router' | ||||
| import { type RouteRecordRaw, createRouter, createWebHashHistory } from 'vue-router' | ||||
|  | ||||
| /** 默认布局 */ | ||||
| const Layout = () => import('@/layout/index.vue') | ||||
|   | ||||
| @@ -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