Commit 9a0b5709 authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents af469051 44feead3
......@@ -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