Forráskód Böngészése

fix: wx 请求不显示bug

菲鸽 2 éve
szülő
commit
44878e441c
1 módosított fájl, 2 hozzáadás és 0 törlés
  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 的设计