优化首页
This commit is contained in:
10
main.js
10
main.js
@@ -11,9 +11,15 @@ import i18n from './locale/index'
|
||||
// 全局icon组件
|
||||
import iconfont from './components/iconfont/iconfont.vue'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
// #ifdef H5
|
||||
// 在组件或JS文件中使用
|
||||
import Vconsole from 'vconsole';
|
||||
new Vconsole()
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.log('当前是开发环境');
|
||||
} else {
|
||||
console.log('当前是生产环境');
|
||||
// new Vconsole()
|
||||
}
|
||||
// #endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user