refactor(router): 使用常量替换硬编码的登录页面路径

统一使用路由配置中的常量 LOGIN_PAGE,提高代码可维护性
This commit is contained in:
feige996
2025-08-22 17:47:23 +08:00
parent 494c6452b5
commit e48bf49c35
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ export const isNeedLogin = LOGIN_STRATEGY === LOGIN_STRATEGY_MAP.DEFAULT_NEED_LO
export const LOGIN_PAGE = '/pages/login/login'
export const REGISTER_PAGE = '/pages/login/register'
export const LOGIN_PAGE_LIST = [LOGIN_PAGE, REGISTER_PAGE]
// 排除在外的列表,白名单策略指白名单列表,黑名单策略指黑名单列表