| 123456789101112131415161718192021222324 |
- /**
- * 统一拦截器配置
- */
- // 不需要登录验证的白名单页面
- export const whiteList = [
- 'pages/login/login',
- 'pages/agreement/user',
- 'pages/agreement/privacy'
- ]
- /**
- * 检查页面是否在白名单中
- * @param {string} pagePath - 页面路径
- * @returns {boolean} 是否在白名单中
- */
- export const isInWhiteList = (pagePath) => {
- return whiteList.includes(pagePath)
- }
- export default {
- whiteList,
- isInWhiteList
- }
|