Commit 8e62475ce66ef68eca08ab630845dfa0b62bcaab
1 parent
b9203dcc
Exists in
charge
fix:小区添加类型,去除vconsole
Showing
2 changed files
with
10 additions
and
2 deletions
Show diff stats
main.js
... | ... | @@ -20,7 +20,7 @@ import { |
20 | 20 | dDingJudgeEnvPlatform |
21 | 21 | } from 'utils/isDing.js' |
22 | 22 | |
23 | -import VConsole from '@/utils/vconsole.js' | |
23 | +// import VConsole from '@/utils/vconsole.js' | |
24 | 24 | import dayjs from '@/uni_modules/uview-ui/libs/util/dayjs.js'; |
25 | 25 | |
26 | 26 | import { |
... | ... | @@ -55,6 +55,14 @@ Vue.component('echarts', echarts) |
55 | 55 | Vue.component('Navbar', Navbar) |
56 | 56 | Vue.component('TabBar', TabBar) |
57 | 57 | |
58 | +// 去除console.log打印 | |
59 | +if (process.env.NODE_ENV !== 'production') { | |
60 | + // console.log = () => {} //开发环境去除看一下效果 | |
61 | +}else{ | |
62 | + //正式环境去除 | |
63 | + console.log = () => {} | |
64 | +} | |
65 | + | |
58 | 66 | App.mpType = 'app' |
59 | 67 | |
60 | 68 | Vue.use(G_show_modal) | ... | ... |
pages/charge/visitsAndFees/createaVisit.vue