From 9b2a7d915c87f4dc264de943e153bc962b89514d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E4=B8=BD=E5=90=9B?= <664953382@qq.com> Date: Tue, 15 Mar 2022 16:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 3 ++- vue.config.js | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env.production b/.env.production index fcdb077..1a76feb 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,5 @@ VUE_APP_TITLE = 管理系统 ENV = 'production' # 管理系统/生产环境 -VUE_APP_BASE_API = '' +# VUE_APP_BASE_API = 'http://101.34.131.16:8000' +VUE_APP_BASE_API = '/api' diff --git a/vue.config.js b/vue.config.js index 0a84eec..9673159 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,8 +35,11 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - // target: `http://192.168.0.142:8000`, - target: `http://hf.zky.cn:8000`, + // target: `http://101.34.131.16:8000`, + target: `http://192.168.0.149:8000`, + // target: `http://192.168.0.135:8000`, + // target: `http://zky.server.ipeace.org.cn`, + // target: `http://hf.zky.cn:8000`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '',