| | |
| | | import axios from 'axios' |
| | | |
| | | axios.defaults.baseURL = 'minkesoft/webapi/dostar' |
| | | axios.defaults.baseURL = '/webapi/dostar' |
| | | axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' |
| | | axios.defaults.crossDomain = true; |
| | | axios.defaults.withCredentials = true; |
| | |
| | | // 在发送请求之前做些什么 |
| | | config.data == undefined ? config.data = {} : false; |
| | | config.method = 'post'; |
| | | config.data.userid = 'U000001'; |
| | | config.data.userid = ''; |
| | | // config.data.token = '9a15f03ffdff4ddef0414fb120fa4834351f00c0'; |
| | | config.data = JSON.stringify(config.data) |
| | | return config; |