Browse Source

文件路径

Shan9312 2 months ago
parent
commit
e51f876644
2 changed files with 8 additions and 8 deletions
  1. 6 6
      src/pages.json
  2. 2 2
      src/types/uni-pages.d.ts

+ 6 - 6
src/pages.json

@@ -39,19 +39,19 @@
   },
   "pages": [
     {
-      "path": "pages/my/my",
+      "path": "pages/index/index",
       "type": "home",
       "style": {
-        "navigationBarTitleText": "我的",
-        "navigationBarBackgroundColor": "#c08e10"
+        "navigationBarBackgroundColor": "#c08e10",
+        "navigationBarTitleText": "首页"
       }
     },
     {
-      "path": "pages/index/index",
+      "path": "pages/my/my",
       "type": "home",
       "style": {
-        "navigationBarBackgroundColor": "#c08e10",
-        "navigationBarTitleText": "首页"
+        "navigationBarTitleText": "我的",
+        "navigationBarBackgroundColor": "#c08e10"
       }
     },
     {

+ 2 - 2
src/types/uni-pages.d.ts

@@ -4,8 +4,8 @@
 // Generated by vite-plugin-uni-pages
 
 interface NavigateToOptions {
-  url: "/pages/my/my" |
-       "/pages/index/index" |
+  url: "/pages/index/index" |
+       "/pages/my/my" |
        "/pages/about/about" |
        "/pages/approach/approach" |
        "/pages/battleForm/battleForm" |