修改打包配置
This commit is contained in:
parent
8890e61eb6
commit
2b4bfdd039
|
|
@ -6,5 +6,5 @@ module.exports = {
|
||||||
NODE_ENV: '"production"',
|
NODE_ENV: '"production"',
|
||||||
//post用当前域名
|
//post用当前域名
|
||||||
// API_ROOT: '"http://' + testUrl + '/iot"'
|
// API_ROOT: '"http://' + testUrl + '/iot"'
|
||||||
// API_ROOT: '/',
|
API_ROOT: '"/dev/api"',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import axios from 'axios'
|
||||||
axios.defaults.timeout = 30000
|
axios.defaults.timeout = 30000
|
||||||
|
|
||||||
// 默认配置
|
// 默认配置
|
||||||
// axios.defaults.baseURL = process.env.API_ROOT;
|
axios.defaults.baseURL = process.env.API_ROOT
|
||||||
// axios.defaults.baseURL = 'http://192.168.0.56:21627/bigScreen'
|
// axios.defaults.baseURL = 'http://192.168.0.56:21627/bigScreen'
|
||||||
axios.defaults.baseURL = 'screen'
|
// axios.defaults.baseURL = 'screen'
|
||||||
// axios.defaults.baseURL = 'http://localhost:8080/screen'
|
// axios.defaults.baseURL = 'http://localhost:8080/screen'
|
||||||
|
|
||||||
axios.interceptors.request.use(
|
axios.interceptors.request.use(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue