vconsole回来了

This commit is contained in:
aixianling
2022-02-15 17:13:00 +08:00
parent c2ab693bb5
commit a94fbbfec7
3 changed files with 3 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import store from './store';
import axios from './common/axios';
import utils from './common/util';
import ui from 'uview-ui'
import VConsole from 'vconsole'
const loading = title => {
uni.showLoading({
@@ -25,7 +26,7 @@ Vue.prototype.$http = axios;
Vue.prototype.$cdn = 'https://cdn.cunwuyun.cn/dvcp/h5/';
Object.keys(utils).map((e) => (Vue.prototype['$' + e] = utils[e]));
App.mpType = 'app';
// process.env.NODE_ENV == 'development' && new VConsole();
process.env.NODE_ENV == 'development' && new VConsole();
const app = new Vue({
store,
...App