diff --git a/.gitignore b/.gitignore index e31c20b..89eefb4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ unpackage sitemap.json .prettierrc.cjs pages/diy/init_data.js +node_modules diff --git a/main.js b/main.js index 3ee9879..8f91fb6 100644 --- a/main.js +++ b/main.js @@ -10,6 +10,13 @@ import i18n from './locale/index' // 全局icon组件 import iconfont from './components/iconfont/iconfont.vue' + +// #ifdef MP-WEIXIN +import Vconsole from 'vconsole'; +new Vconsole() +// #endif + + Vue.component("iconfont", iconfont); Vue.mixin(base); @@ -19,7 +26,7 @@ Vue.config.productionTip = false; App.mpType = 'app'; const app = new Vue({ - i18n, - ...App + i18n, + ...App }); app.$mount(); \ No newline at end of file diff --git a/package.json b/package.json index 86c39c1..761e226 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "dependencies": { "dayjs": "^1.11.13", + "vconsole": "^3.15.1", "weixin-js-sdk": "^1.6.5" } }