refactor(router): 使用常量替换硬编码的登录页面路径
统一使用路由配置中的常量 LOGIN_PAGE,提高代码可维护性
This commit is contained in:
@@ -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]
|
||||
|
||||
// 排除在外的列表,白名单策略指白名单列表,黑名单策略指黑名单列表
|
||||
|
||||
Reference in New Issue
Block a user