From d804c505832859ebf143673a73413339567b6e7b Mon Sep 17 00:00:00 2001 From: xiaozhiyong Date: Wed, 12 Apr 2023 13:25:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 7 ++++--- vue.config.js | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index 0ccf9ab..b3d8d8f 100644 --- a/src/main.js +++ b/src/main.js @@ -11,9 +11,10 @@ import '@/assets/iconfont/iconfont.css' import { createPinia, PiniaVuePlugin } from 'pinia' import vConsole from 'vconsole' -if (process.env.VUE_APP_ENV !== 'production') { - new vConsole() -} +// if (process.env.VUE_APP_ENV !== 'production') { +// new vConsole() +// } +new vConsole() Vue.use(PiniaVuePlugin) const pinia = createPinia() diff --git a/vue.config.js b/vue.config.js index fcb45ab..73fd7a9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -17,8 +17,8 @@ module.exports = defineConfig({ proxy: { [process.env.VUE_APP_BASE_API]: { // target: `http://192.168.1.83:38080`, - // target: `https://www.xingoil.com/adminapi`, - target: `http://uat.xingoil.com/adminapi`, + target: `https://www.xingoil.com/adminapi`, + // target: `http://uat.xingoil.com/adminapi`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''