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/": "", }, }, },