Procházet zdrojové kódy

build: 配置文件一点小优化

Burt před 2 roky
rodič
revize
a1f2bef5d1
4 změnil soubory, kde provedl 4 přidání a 7 odebrání
  1. 1 0
      .eslintrc.cjs
  2. 0 2
      .gitignore
  3. 2 4
      shims-uni.d.ts
  4. 1 1
      src/pages.json

+ 1 - 0
.eslintrc.cjs

@@ -81,5 +81,6 @@ module.exports = {
     getCurrentPages: true,
     UniHelper: true,
     Page: true,
+    App: true,
   },
 }

+ 0 - 2
.gitignore

@@ -27,5 +27,3 @@ stats.html
 auto-import.d.ts
 # unplugin-vue-components 生成的类型文件
 components.d.ts
-# vite-plugin-uni-pages 生成的类型文件
-uni-pages.d.ts

+ 2 - 4
shims-uni.d.ts

@@ -2,9 +2,7 @@
 import 'vue'
 
 declare module '@vue/runtime-core' {
-  type Hooks = App.AppInstance & Page.PageInstance;
+  type Hooks = App.AppInstance & Page.PageInstance
 
-  interface ComponentCustomOptions extends Hooks {
-
-  }
+  interface ComponentCustomOptions extends Hooks {}
 }

+ 1 - 1
src/pages.json

@@ -8,7 +8,7 @@
     }
   ],
   "globalStyle": {
-    "navigationBarTextStyle": "black",
+    "navigationBarTextStyle": "white",
     "navigationBarTitleText": "vue3-uniapp"
   },
   "easycom": {