Skip to content

Commit 0bb4686

Browse files
committed
fix: wx 请求不显示bug
1 parent 538e1fb commit 0bb4686

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/http.ts

+2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export const http = <T>(options: CustomRequestOptions) => {
77
uni.request({
88
...options,
99
dataType: 'json',
10+
// #ifndef MP-WEIXIN
1011
responseType: 'json',
12+
// #endif
1113
// 响应成功
1214
success(res) {
1315
// 状态码 2xx,参考 axios 的设计

0 commit comments

Comments
 (0)