We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538e1fb commit 0bb4686Copy full SHA for 0bb4686
src/utils/http.ts
@@ -7,7 +7,9 @@ export const http = <T>(options: CustomRequestOptions) => {
7
uni.request({
8
...options,
9
dataType: 'json',
10
+ // #ifndef MP-WEIXIN
11
responseType: 'json',
12
+ // #endif
13
// 响应成功
14
success(res) {
15
// 状态码 2xx,参考 axios 的设计
0 commit comments