|
@@ -3,7 +3,7 @@ export default function (app) {
|
|
|
let options = {}
|
|
|
// 基本配置
|
|
|
axios.defaults.timeout = 10000
|
|
|
- axios.defaults.baseURL = `http://${process.env.HOST || 'localhost'}:${process.env.PORT || 3000}/api`
|
|
|
+ axios.defaults.baseURL = `http://${process.env.HOST || '192.168.1.124'}:${process.env.PORT || 3000}/api`
|
|
|
//axios.defaults.baseURL = 'https://gcb.china0001.com.cn/pubdata'
|
|
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
|
axios.interceptors.request.use(function (config) {
|