refactor(router): 将 HOME_PAGE 常量移至 utils 模块并改进实现
将 HOME_PAGE 常量从 router/config.ts 移动到 utils/index.ts 模块 实现根据 page.json 动态获取首页路径,默认使用第一个页面 更新 router/interceptor.ts 中的导入路径
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
*/
|
||||
import { useTokenStore } from '@/store/token'
|
||||
import { isPageTabbar, tabbarStore } from '@/tabbar/store'
|
||||
import { getAllPages, getLastPage, parseUrlToObj } from '@/utils/index'
|
||||
import { EXCLUDE_LOGIN_PATH_LIST, HOME_PAGE, isNeedLoginMode, LOGIN_PAGE } from './config'
|
||||
import { getAllPages, getLastPage, HOME_PAGE, parseUrlToObj } from '@/utils/index'
|
||||
import { EXCLUDE_LOGIN_PATH_LIST, isNeedLoginMode, LOGIN_PAGE } from './config'
|
||||
|
||||
export const FG_LOG_ENABLE = false
|
||||
export function judgeIsExcludePath(path: string) {
|
||||
|
||||
Reference in New Issue
Block a user