diff --git a/.env.dev b/.env.dev index 3eb632d..7299510 100644 --- a/.env.dev +++ b/.env.dev @@ -1,4 +1,4 @@ NODE_ENV = 'production' -VUE_APP_BASE_URL = http://101.201.121.115:8098/ +VUE_APP_BASE_URL = http://101.201.121.115:9010/ VUE_APP_LOGIN_TITLE = 沈阳领新智科智能信息系统有限公司 VUE_APP_LOGIN_LOGO = ../assets/img/logo.png diff --git a/.env.test b/.env.test index 0ef493c..4d13ad3 100644 --- a/.env.test +++ b/.env.test @@ -1,4 +1,4 @@ NODE_ENV = 'production' -VUE_APP_BASE_URL = http://101.201.121.115:8098/ +VUE_APP_BASE_URL = http://101.201.121.115:9010/ VUE_APP_LOGIN_TITLE = 沈阳领新智科智能信息系统有限公司 VUE_APP_LOGIN_LOGO = ../assets/img/logo.png \ No newline at end of file diff --git a/package.json b/package.json index 896ac21..632839a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", + "build:dev": "vue-cli-service build --mode dev", "build:test": "vue-cli-service build --mode test", "build:prod": "vue-cli-service build --mode prod", "lint": "vue-cli-service lint" diff --git a/src/server/request.js b/src/server/request.js index db175ab..4511ca9 100644 --- a/src/server/request.js +++ b/src/server/request.js @@ -2,7 +2,7 @@ import axios from "axios"; // create an axios instance const service = axios.create({ - baseURL: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:8098/', + baseURL: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:9010/', timeout: 20000, // request timeout }); // request interceptor diff --git a/vue.config.js b/vue.config.js index d9f5adf..830a938 100644 --- a/vue.config.js +++ b/vue.config.js @@ -18,7 +18,7 @@ module.exports = { open: true, proxy: { "/user": { - target: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:8098/', //要跨域的域名 目标地址 + target: process.env.VUE_APP_BASE_URL || 'http://101.201.121.115:9010/', //要跨域的域名 目标地址 changeOrigin: true, //是否开启跨域 是否更改源路径 ws: true, pathRewrite: {