This commit is contained in:
zhutianqi
2021-08-04 11:11:01 +08:00
parent 296cdb59b5
commit 0719b0f796
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -7,11 +7,11 @@ import axios from 'axios'
import router from '@/router'
import store from '@/store'
import {Message} from 'element-ui'
import { serverUrl } from '@/sysConfig'
import { baseUrl } from '@/sysConfig'
export const CancelToken = axios.CancelToken
// import 'element-ui/lib/theme-chalk/index.css'
const _axios = axios.create({
baseURL: process.env.NODE_ENV === 'production' ? serverUrl : '/'
baseURL: process.env.NODE_ENV === 'production' ? baseUrl : '/'
})
/**
+2 -2
View File
@@ -2,7 +2,7 @@ import axios from 'axios'
import router from '@/router'
import store from '@/store'
import {Message} from 'element-ui'
import { serverUrl } from '@/sysConfig'
import { baseUrl } from '@/sysConfig'
// import 'element-ui/lib/theme-chalk/index.css'
/**
@@ -19,7 +19,7 @@ let formData = (data) => {
}
const service = axios.create({
baseURL: process.env.NODE_ENV === 'production' ? serverUrl : '/'
baseURL: process.env.NODE_ENV === 'production' ? baseUrl : '/'
})
service.defaults.timeout = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
+1 -1
View File
@@ -31,7 +31,7 @@ const processPort = '17210'
*****************************************************************/
// 生产环境配置
const prodIp = '62.234.136.153'
const prodInterfacePORT = '8033'
const prodInterfacePORT = '8038'
// 判断环境