From ddf7a1a643ba37a8bc50b39f0f193ddc772eccfe Mon Sep 17 00:00:00 2001 From: lingxiao Date: Tue, 22 Nov 2022 17:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.JIS5300 | 6 +++--- .env.TRIM | 2 +- src/server/request.js | 3 ++- vue.config.js | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.env.JIS5300 b/.env.JIS5300 index dbb6b5a..3fc5db0 100644 --- a/.env.JIS5300 +++ b/.env.JIS5300 @@ -1,4 +1,4 @@ NODE_ENV = 'production' -VUE_APP_BASE_URL = http://10.104.120.109:9010/ -VUE_APP_LOGIN_TITLE = 安道拓南通面套工厂COS系统 -VUE_APP_LOGIN_LOGO = ../assets/img/logo.png \ No newline at end of file +VUE_APP_BASE_URL = http://101.201.121.115:9010/ +VUE_APP_LOGIN_TITLE = SCCP JIS系统 +VUE_APP_LOGIN_LOGO = ../assets/img/logo.png diff --git a/.env.TRIM b/.env.TRIM index dbb6b5a..4805015 100644 --- a/.env.TRIM +++ b/.env.TRIM @@ -1,4 +1,4 @@ NODE_ENV = 'production' -VUE_APP_BASE_URL = http://10.104.120.109:9010/ +VUE_APP_BASE_URL = http://101.201.121.115:9010/ VUE_APP_LOGIN_TITLE = 安道拓南通面套工厂COS系统 VUE_APP_LOGIN_LOGO = ../assets/img/logo.png \ No newline at end of file diff --git a/src/server/request.js b/src/server/request.js index 1251114..91aae27 100644 --- a/src/server/request.js +++ b/src/server/request.js @@ -2,7 +2,8 @@ import axios from "axios"; // create an axios instance const service = axios.create({ - baseURL: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:9010/', + // baseURL: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:9010/', + baseURL:"/sylxzk/etl/" // timeout: 20000, // request timeout }); // request interceptor diff --git a/vue.config.js b/vue.config.js index 830a938..d86db11 100644 --- a/vue.config.js +++ b/vue.config.js @@ -17,12 +17,12 @@ module.exports = { host: "localhost", open: true, proxy: { - "/user": { + "/sylxzk/etl/": { target: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:9010/', //要跨域的域名 目标地址 changeOrigin: true, //是否开启跨域 是否更改源路径 ws: true, pathRewrite: { - "^/user": "", // /api/ / 凡是/api开头的地址都可以跨域 + "^/sylxzk/etl/": "", }, }, },