Browse Source

fix: wx 请求不显示bug

菲鸽 2 years ago
parent
commit
44878e441c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/utils/http.ts

+ 2 - 0
src/utils/http.ts

@@ -54,7 +54,9 @@ export const http = <T>(options: CustomRequestOptions) => {
     uni.request({
       ...options,
       dataType: 'json',
+      // #ifndef MP-WEIXIN
       responseType: 'json',
+      // #endif
       // 响应成功
       success(res) {
         // 状态码 2xx,参考 axios 的设计