罗广辉
2025-09-30 c76922f37ddeeb3344304af453dd2f8befdedb89
src/router/index.js
@@ -4,21 +4,21 @@
 * @LastEditors  : yuan
 * @LastEditTime : 2025-09-28 09:55:05
 * @FilePath     : \src\router\index.js
 * @Description  :
 * Copyright 2025 OBKoro1, All Rights Reserved.
 * @Description  :
 * Copyright 2025 OBKoro1, All Rights Reserved.
 * 2025-09-28 09:31:16
 */
import pagesJson from "@/pages.json"
// 路径常量
export const HOME_PATH = "/pages/tab/home/index"
export const LOGIN_PATH = "/pages/common/login/index"
export const HOME_PATH = "/pages/map/index"
export const LOGIN_PATH = "/pages/login/index"
export const ERROR404_PATH = "/pages/common/404/index"
/**
 * 解析路由地址
 * @param {object} pagesJson
 * @returns [{"path": "/pages/tab/home/index","needLogin": false},...]
 * @returns [{"path": "/pages/tab/map/index","needLogin": false},...]
 */
function parseRoutes (pagesJson = {}) {
  if (!pagesJson.pages) {