浏览代码

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 的设计