Commit 9b214fa2 authored by 赵啸非's avatar 赵啸非

修改异常记录

parent 62961ab7
......@@ -81,7 +81,13 @@ instance.interceptors.response.use(response=>{
* @returns
*/
export function post(url, option, config = {}) {
//判断object是数组还是对象
const data = Object.assign({}, option, {
// __mortals_token__: cookie.getItem('__mortals_token__'),
})
return instance.post(url, data, config)
/* //判断object是数组还是对象
if(Object.getPrototypeOf(option) === Object.prototype){
const data = Object.assign({}, option, {
// __mortals_token__: cookie.getItem('__mortals_token__'),
......@@ -89,7 +95,7 @@ export function post(url, option, config = {}) {
return instance.post(url, data, config)
}else{
return instance.post(url, option, config)
}
}*/
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment