Commit 674129b8 authored by 何虹's avatar 何虹 💬

打包中不支持...{}

parent 5d4a2f98
......@@ -30,10 +30,10 @@ class Root {
request (method, url, data, params, headers = null, config = {}) {
this.filterEmptyValue(data)
// 公共头设置
const aixosCtx = { method, url,...config }
// if (config) {
// Object.assign(aixosCtx, config)
// }
const aixosCtx = { method, url }
if (config) {
Object.assign(aixosCtx, config)
}
params && (aixosCtx.params = params)
if (aixosCtx.params && aixosCtx.params.token) delete aixosCtx.params.token
if (aixosCtx.params && aixosCtx.params._user_info) delete aixosCtx.params._user_info
......
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