Browse Source

Merge pull request '配置信息调整' (#2) from lingxiao into develop

Reviewed-on: http://101.201.121.115:3000/leo/LAPP_ETL_WEBFRONT/pulls/2
pull/3/head
wangxy 3 years ago
parent
commit
48fb354a27
5 changed files with 5 additions and 4 deletions
  1. +1
    -1
      .env.dev
  2. +1
    -1
      .env.test
  3. +1
    -0
      package.json
  4. +1
    -1
      src/server/request.js
  5. +1
    -1
      vue.config.js

+ 1
- 1
.env.dev View File

@ -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

+ 1
- 1
.env.test View File

@ -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

+ 1
- 0
package.json View File

@ -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"


+ 1
- 1
src/server/request.js View File

@ -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


+ 1
- 1
vue.config.js View File

@ -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: {


Loading…
Cancel
Save