Commit 9090c0dc by golton_gao

fix: 针对ios在get请求时会读取data字段的问题,将data字段置空

parent 4a4c2aa7
Showing with 2 additions and 0 deletions
......@@ -101,6 +101,8 @@ function request (opt) {
opt.data = params2object(data)
}
}
} else if (opt.method.toLowerCase() === 'get') {
opt.data = {}
}
// 处理header
......
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 sign in to comment