소스 검색

fix: wx 请求不显示bug

菲鸽 2 년 전
부모
커밋
44878e441c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 的设计