Browse Source

build: 写成 easycom 规范可以不用显式custom 规则

菲鸽 2 years ago
parent
commit
ffc37d9030
3 changed files with 1 additions and 2 deletions
  1. 1 1
      pages.config.ts
  2. 0 0
      src/components/fg-tabbar/fg-tabbar.vue
  3. 0 1
      src/pages.json

+ 1 - 1
pages.config.ts

@@ -11,7 +11,7 @@ export default defineUniPages({
   easycom: {
     autoscan: true,
     custom: {
-      '^fg-(.*)': '@/components/fg-$1.vue',
+      // '^fg-(.*)': '@/components/fg-$1.vue',
       '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
     },
   },

src/components/fg-tabbar.vue → src/components/fg-tabbar/fg-tabbar.vue


+ 0 - 1
src/pages.json

@@ -9,7 +9,6 @@
   "easycom": {
     "autoscan": true,
     "custom": {
-      "^fg-(.*)": "@/components/fg-$1.vue",
       "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue"
     }
   },