修改打包配置
This commit is contained in:
parent
bc90179238
commit
6004f63e9f
|
|
@ -5,6 +5,6 @@ var testUrl = '112.29.103.165:21624/'
|
||||||
module.exports = {
|
module.exports = {
|
||||||
NODE_ENV: '"production"',
|
NODE_ENV: '"production"',
|
||||||
//post用当前域名
|
//post用当前域名
|
||||||
// API_ROOT: '"http://' + testUrl + '/iot"'
|
API_ROOT: 'http://192.168.0.62:21624/sgzbgl-api/'
|
||||||
// API_ROOT: '/sgzbgl-api/',
|
// API_ROOT: '/sgzbgl-api/',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@ import axios from 'axios';
|
||||||
|
|
||||||
|
|
||||||
const axiosService = axios.create({
|
const axiosService = axios.create({
|
||||||
baseURL: "http://192.168.8.163:21624/sgzbgl-api/",// you can use "process.env.VUE_APP_BASE_API" too
|
// baseURL: "http://192.168.0.62:21624/sgzbgl-api/",// you can use "process.env.VUE_APP_BASE_API" too
|
||||||
|
baseURL: process.env.API_ROOT,
|
||||||
timeout: 30000
|
timeout: 30000
|
||||||
})
|
})
|
||||||
axiosService.interceptors.request.use(
|
axiosService.interceptors.request.use(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue