微信小程序中自带vconsole
+ + +错误源:
+1 | // main.js 引入vconsole引起 |
修正:
+1 | // main.js 引入vconsole引起 |
总结:微信小程序中自带vconsole,所以在引入的时候需要加上编译条件,排除掉微信。
+ + + + +diff --git "a/2021/12/17/\345\205\263\344\272\216\350\256\276\347\275\256\350\241\214\351\253\230\345\220\216\345\257\271\345\255\227\344\275\223\345\233\276\346\240\207\344\270\215\347\224\237\346\225\210\347\232\204\351\227\256\351\242\230/index.html" "b/2021/12/17/\345\205\263\344\272\216\350\256\276\347\275\256\350\241\214\351\253\230\345\220\216\345\257\271\345\255\227\344\275\223\345\233\276\346\240\207\344\270\215\347\224\237\346\225\210\347\232\204\351\227\256\351\242\230/index.html" index 5f451dd..73c07be 100644 --- "a/2021/12/17/\345\205\263\344\272\216\350\256\276\347\275\256\350\241\214\351\253\230\345\220\216\345\257\271\345\255\227\344\275\223\345\233\276\346\240\207\344\270\215\347\224\237\346\225\210\347\232\204\351\227\256\351\242\230/index.html" +++ "b/2021/12/17/\345\205\263\344\272\216\350\256\276\347\275\256\350\241\214\351\253\230\345\220\216\345\257\271\345\255\227\344\275\223\345\233\276\346\240\207\344\270\215\347\224\237\346\225\210\347\232\204\351\227\256\351\242\230/index.html" @@ -441,6 +441,10 @@
+ 缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
+ 3、在根目录_config.yml里添加配置:
+
+ jsonContent: + meta: false + pages: false + posts: + title: true + date: true + path: true + text: false + raw: false + content: false + slug: false + updated: false + comments: false + link: false + permalink: false + excerpt: false + categories: false + tags: true ++ +
+ + +
++ + +
+微信小程序中自带vconsole
+ + more >> + + + + ++ 展开全文 >> +
+ + + + +
+ 缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
+ 3、在根目录_config.yml里添加配置:
+
+ jsonContent: + meta: false + pages: false + posts: + title: true + date: true + path: true + text: false + raw: false + content: false + slug: false + updated: false + comments: false + link: false + permalink: false + excerpt: false + categories: false + tags: true ++ +
+ + +
++ + +
+