fix: 避免get请求带body错误
This commit is contained in:
@@ -196,6 +196,8 @@ function beforeRequest(options: OptionsType): OptionsType | Promise<any> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.method === 'get') return options;
|
||||||
|
|
||||||
// 非get参数提交
|
// 非get参数提交
|
||||||
let body = options.data
|
let body = options.data
|
||||||
if (body instanceof FormData) {
|
if (body instanceof FormData) {
|
||||||
|
|||||||
Reference in New Issue
Block a user