From 3fc27febccd04e2fcffbd2cdd16d2daafd0b3ca3 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 11 Oct 2025 17:23:27 +0800
Subject: [PATCH] feat:首页地图相关调整

---
 src/router/index.js |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index 0eab82c..41ec59c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -4,23 +4,23 @@
  * @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 = {}) {
+function parseRoutes (pagesJson = {}) {
   if (!pagesJson.pages) {
     pagesJson.pages = []
   }
@@ -28,7 +28,7 @@
     pagesJson.subPackages = []
   }
 
-  function parsePages(pages = [], rootPath = "") {
+  function parsePages (pages = [], rootPath = "") {
     const routes = []
     for (let i = 0; i < pages.length; i++) {
       routes.push({
@@ -39,7 +39,7 @@
     return routes
   }
 
-  function parseSubPackages(subPackages = []) {
+  function parseSubPackages (subPackages = []) {
     const routes = []
     for (let i = 0; i < subPackages.length; i++) {
       routes.push(...parsePages(subPackages[i].pages, subPackages[i].root))
@@ -58,7 +58,7 @@
  * 当前路由
  * @returns {string} 当前路由
  */
-export function currentRoute() {
+export function currentRoute () {
   // getCurrentPages() 至少有1个元素,所以不再额外判断
   const pages = getCurrentPages()
   const currentPage = pages[pages.length - 1]
@@ -70,7 +70,7 @@
  * @param {string} path
  * @returns {string} 去除查询字符串后的路径
  */
-export function removeQueryString(path = "") {
+export function removeQueryString (path = "") {
   return path.split("?")[0]
 }
 
@@ -79,7 +79,7 @@
  * @param {string} path
  * @returns {boolean} 路径是否存在
  */
-export function isPathExists(path = "") {
+export function isPathExists (path = "") {
   const cleanPath = removeQueryString(path)
   return routes.some(item => item.path === cleanPath)
 }
@@ -89,7 +89,7 @@
  * @param {string} path
  * @returns {boolean} 是否是tabbar页面
  */
-export function isTabBarPath(path = "") {
+export function isTabBarPath (path = "") {
   const cleanPath = removeQueryString(path)
   return (
     pagesJson.tabBar?.list?.some(item => `/${item.pagePath}` === cleanPath) ===

--
Gitblit v1.9.3