fix: 避免get请求带body错误

This commit is contained in:
TsMask
2024-08-21 17:38:10 +08:00
parent ac7b57c0ae
commit 527cf89d1a

View File

@@ -196,6 +196,8 @@ function beforeRequest(options: OptionsType): OptionsType | Promise<any> {
}
}
if (options.method === 'get') return options;
// 非get参数提交
let body = options.data
if (body instanceof FormData) {