Commit 5e042fbe authored by xinzhedeai's avatar xinzhedeai

url硬编码修改为配置 merge

parents 2e5e0bd6 02009f37
...@@ -2,6 +2,9 @@ NODE_ENV = 'production' ...@@ -2,6 +2,9 @@ NODE_ENV = 'production'
#VUE_APP_BASE_API = 'http://192.168.100.226:8080/production' #VUE_APP_BASE_API = 'http://192.168.100.226:8080/production'
#VUE_APP_BASE_API = 'http://39.98.150.124:8000/production' #VUE_APP_BASE_API = 'http://39.98.150.124:8000/production'
# VUE_APP_BASE_API = 'http://120.224.103.84:9111/production' # VUE_APP_BASE_API = 'http://120.224.103.84:9111/production'
VUE_APP_BASE_API = 'http://60.31.138.166:8000/production' # VUE_APP_BASE_API = 'http://60.31.138.166:8000/production'
VUE_APP_LOCAL_API = 'http://60.31.138.166:8000' // 合并前的241030
VUE_APP_BASE_API = 'http://60.31.138.166:8000/production' // 新合并的地址241030
outputDir = 'production' outputDir = 'production'
...@@ -8,7 +8,8 @@ const service = axios.create({ ...@@ -8,7 +8,8 @@ const service = axios.create({
// baseURL: 'http://192.168.1.123:8000/', // baseURL: 'http://192.168.1.123:8000/',
//baseURL: 'http://192.168.3.166:8000/', //baseURL: 'http://192.168.3.166:8000/',
// baseURL: 'http://120.224.103.84:9111/', // baseURL: 'http://120.224.103.84:9111/',
baseURL: 'http://60.31.138.166:8000/', //baseURL: 'http://10.185.163.57:8000/',
baseURL: process.env.VUE_APP_LOCAL_API + '/',
timeout: 30000, timeout: 30000,
}) })
......
...@@ -6,9 +6,8 @@ const service = axios.create({ ...@@ -6,9 +6,8 @@ const service = axios.create({
// baseURL: 'http://192.168.3.216:8000/', // 大龙 // baseURL: 'http://192.168.3.216:8000/', // 大龙
// baseURL: 'http://192.168.1.123:8000/', //小葱 // baseURL: 'http://192.168.1.123:8000/', //小葱
// baseURL: 'http://120.224.103.84:9111/', // baseURL: 'http://120.224.103.84:9111/',
baseURL: 'http://60.31.138.166:8000/', // baseURL: 'http://10.185.163.57:8000/',
baseURL: process.env.VUE_APP_LOCAL_API + '/',
timeout: 30000, timeout: 30000,
}) })
......
...@@ -144,9 +144,7 @@ export default { ...@@ -144,9 +144,7 @@ export default {
} }
console.log('AsD'+localStorage.getItem('token4dp')+'sVsf') console.log('AsD'+localStorage.getItem('token4dp')+'sVsf')
axios({ axios({
url: 'http://60.31.138.166:8000/auth/info', url: process.env.VUE_APP_LOCAL_API + '/auth/info',
// url: 'http://192.168.3.166:8000/auth/info',
method: 'get', method: 'get',
headers: { headers: {
Authorization: localStorage.getItem('token4dp'), Authorization: localStorage.getItem('token4dp'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment