From 2b13c35bcf3c5a50c85f9d25f76e7a16945073eb Mon Sep 17 00:00:00 2001 From: "pang.lizong" Date: Thu, 19 Sep 2019 13:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=B8=AA=E4=BA=BA=E6=94=B6?= =?UTF-8?q?=E5=85=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/main.js | 4 ++-- src/views/ebiz/my/UserIncome.vue | 6 +++--- src/views/ebiz/sale/SignatureConfirmation.vue | 21 ++++++++++++------- src/views/ebiz/sale/SignatureOfElectronic.vue | 2 +- vue.config.js | 4 ++-- 6 files changed, 23 insertions(+), 16 deletions(-) diff --git a/.env.development b/.env.development index 0f3aa8d52..765783424 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # env -NODE_ENV = 'development' +NODE_ENV = 'production' # flag VUE_APP_FLAG='development' diff --git a/src/main.js b/src/main.js index d1d6d613a..80b7c2783 100644 --- a/src/main.js +++ b/src/main.js @@ -49,11 +49,11 @@ Vue.prototype.$jump = Jump Vue.prototype.$utils = utils //混合开发调试工具 -if (process.env.NODE_ENV == 'development') { +if (process.env.VUE_APP_FLAG == 'development') { // let Eruda = require('eruda') // Eruda.init() Vue.prototype.$rootUrl = location.origin -} else if (process.env.NODE_ENV == 'production') { +} else if (process.env.VUE_APP_FLAG == 'production') { Vue.prototype.$rootUrl = location.origin + '/ebiz-h5' } let Eruda = require('eruda') diff --git a/src/views/ebiz/my/UserIncome.vue b/src/views/ebiz/my/UserIncome.vue index 943ef5c0a..fabfd4a4b 100644 --- a/src/views/ebiz/my/UserIncome.vue +++ b/src/views/ebiz/my/UserIncome.vue @@ -75,7 +75,7 @@