import axios from 'axios'
import qs from 'qs'
import global from './global'
export default {
post(url, data) {
return axios({
method: 'post',
url,
data: data,
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/json; charset=UTF-8'
}
}).then(
(response) => {
return checkStatus(response)
}
).then(
(res) => {
return checkCode(res)
}
)
},
}