Explorar o código

fix: wx 请求不显示bug

菲鸽 %!s(int64=2) %!d(string=hai) anos
pai
achega
44878e441c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 的设计