From 8e62475ce66ef68eca08ab630845dfa0b62bcaab Mon Sep 17 00:00:00 2001 From: guoweilong Date: Wed, 12 Jun 2024 18:02:08 +0800 Subject: [PATCH] fix:小区添加类型,去除vconsole --- main.js | 10 +++++++++- pages/charge/visitsAndFees/createaVisit.vue | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index ea0f8bf..a4bf8b3 100644 --- a/main.js +++ b/main.js @@ -20,7 +20,7 @@ import { dDingJudgeEnvPlatform } from 'utils/isDing.js' -import VConsole from '@/utils/vconsole.js' +// import VConsole from '@/utils/vconsole.js' import dayjs from '@/uni_modules/uview-ui/libs/util/dayjs.js'; import { @@ -55,6 +55,14 @@ Vue.component('echarts', echarts) Vue.component('Navbar', Navbar) Vue.component('TabBar', TabBar) +// 去除console.log打印 +if (process.env.NODE_ENV !== 'production') { + // console.log = () => {} //开发环境去除看一下效果 +}else{ + //正式环境去除 + console.log = () => {} +} + App.mpType = 'app' Vue.use(G_show_modal) diff --git a/pages/charge/visitsAndFees/createaVisit.vue b/pages/charge/visitsAndFees/createaVisit.vue index 277b75b..ebce3fd 100644 --- a/pages/charge/visitsAndFees/createaVisit.vue +++ b/pages/charge/visitsAndFees/createaVisit.vue @@ -986,7 +986,7 @@ } let col = result.data.map(item => ({ value: item.vlgOrCmty, - label: item.vlgOrCmty, + label: `${item.vlgOrCmty}(${item.urbRurCls})`, urbRurCls: item.urbRurCls })); this.columns = [col]; -- libgit2 0.21.2