Quellcode durchsuchen

暂定当前内容,做pc端 后面不修改

Shan9312 vor 2 Monaten
Ursprung
Commit
609c8e0117
4 geänderte Dateien mit 13 neuen und 11 gelöschten Zeilen
  1. 1 1
      project.private.config.json
  2. 8 8
      src/pages.json
  3. 3 1
      src/pages/my/my.vue
  4. 1 1
      src/types/uni-pages.d.ts

+ 1 - 1
project.private.config.json

@@ -3,6 +3,6 @@
   "projectname": "beefCattle-uni",
   "setting": {
     "compileHotReLoad": true,
-    "urlCheck": true
+    "urlCheck": false
   }
 }

+ 8 - 8
src/pages.json

@@ -46,14 +46,6 @@
         "navigationBarTitleText": "首页"
       }
     },
-    {
-      "path": "pages/my/my",
-      "type": "home",
-      "style": {
-        "navigationBarTitleText": "我的",
-        "navigationBarBackgroundColor": "#c08e10"
-      }
-    },
     {
       "path": "pages/about/about",
       "type": "page",
@@ -110,6 +102,14 @@
         "navigationBarTitleText": "登录"
       }
     },
+    {
+      "path": "pages/my/my",
+      "type": "page",
+      "style": {
+        "navigationBarTitleText": "我的",
+        "navigationBarBackgroundColor": "#c08e10"
+      }
+    },
     {
       "path": "pages/neckRing/neckRing",
       "type": "page",

+ 3 - 1
src/pages/my/my.vue

@@ -1,5 +1,5 @@
 <!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page;推荐使用json5,更强大,且允许注释 -->
-<route lang="json5" type="home">
+<route lang="json5" type="page">
 {
   style: {
     navigationBarTitleText: '我的',
@@ -57,6 +57,7 @@
         </view>
       </view>
     </view>
+
     <!-- 个人信息 -->
     <view class="user-tool px-4 pt-1 pb-1 flex mb-2" v-for="(item, index) in userList" :key="index">
       <view>
@@ -72,6 +73,7 @@
 
 <script lang="ts" setup>
 import { ref } from 'vue'
+
 defineOptions({
   name: 'Home',
 })

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

@@ -5,7 +5,6 @@
 
 interface NavigateToOptions {
   url: "/pages/index/index" |
-       "/pages/my/my" |
        "/pages/about/about" |
        "/pages/approach/approach" |
        "/pages/battleForm/battleForm" |
@@ -14,6 +13,7 @@ interface NavigateToOptions {
        "/pages/feedBack/feedBack" |
        "/pages/illness/illness" |
        "/pages/login/login" |
+       "/pages/my/my" |
        "/pages/neckRing/neckRing" |
        "/pages/notice/notice" |
        "/pages/phone/phone" |