first commit

This commit is contained in:
2026-09-02 16:31:50 +08:00
commit a461727193
911 changed files with 692450 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { type RouteLocationNormalized } from "vue-router"
/** 免登录白名单(匹配路由 path) */
const whiteListByPath: string[] = ["/login",'/stockIn-page','/tailIn-page',
'/materialMaintance-page','/carryMaterial-page','/sysSetting-page','/stockInDetail-page']
/** 免登录白名单(匹配路由 name) */
const whiteListByName: string[] = []
/** 判断是否在白名单 */
const isWhiteList = (to: RouteLocationNormalized) => {
// path 和 name 任意一个匹配上即可
return whiteListByPath.indexOf(to.path) !== -1 || whiteListByName.indexOf(to.name as any) !== -1
}
export default isWhiteList