统一甲屿云命名体系

This commit is contained in:
2026-06-29 23:26:43 +08:00
parent 48c47fe3ff
commit bc8a7d8d4c
1268 changed files with 3477 additions and 3511 deletions
+21
View File
@@ -0,0 +1,21 @@
const API_AUTH_FREE_PATHS = [
'/user/send-verification-code',
'/user/phone-login',
'/user/check/login-shops/phone/',
'/legal-agreement/current'
]
const ADMIN_AUTH_FREE_PATHS = [
'/auth/login',
'/auth/login-shops/',
'/auth/refresh'
]
const matchPath = (url: string | undefined, paths: string[]): boolean => {
const target = String(url || '')
return paths.some(path => target === path || target.startsWith(path))
}
export const isApiAuthFreePath = (url: string | undefined): boolean => matchPath(url, API_AUTH_FREE_PATHS)
export const isAdminAuthFreePath = (url: string | undefined): boolean => matchPath(url, ADMIN_AUTH_FREE_PATHS)