From 650b374513a2dab7ce676fbb73460ba11716801a Mon Sep 17 00:00:00 2001 From: quhongwei <1632078442@qq.com> Date: Thu, 16 Feb 2023 22:11:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- vue.config.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index e2e3e526..823663f7 100644 --- a/.env +++ b/.env @@ -9,7 +9,7 @@ VUE_APP_PROXY_URL=//43.143.139.204/manageApi # 登录url VUE_APP_LOGIN_URL=//u-pre.boe.com/web # boe域名 -VUE_APP_BOE_API_URL=https://u-pre.boe.com +VUE_APP_BOE_API_URL=//u-pre.boe.com #打包路径 VUE_APP_OUTPUT_DIR=./dist diff --git a/vue.config.js b/vue.config.js index 8f2f14d7..bae18429 100644 --- a/vue.config.js +++ b/vue.config.js @@ -12,16 +12,16 @@ module.exports = defineConfig({ publicPath: process.env.VUE_APP_BASE, outputDir: process.env.VUE_APP_OUTPUT_DIR, devServer: { - port: 8080, + port: 8070, proxy: { "/manageApi": { - target: "http://localhost:30001", + target: 'http:' + process.env.VUE_APP_PROXY_URL, changeOrigin: true, //表示是否改变原域名 pathRewrite: { "^/manageApi": "", }, }, "/userbasic": { - target: process.env.VUE_APP_BOE_API_URL, + target: 'https:' + process.env.VUE_APP_BOE_API_URL, changeOrigin: true, //表示是否改变原域名 }, "/systemapi": {