zhuo
8 天以前 22a05e8a9e4ac9f5fad4dd0e181b86e313232854
解决提交体积太大报错问题
已修改1个文件
2 ■■■ 文件已修改
src/utils/request.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.js
@@ -52,7 +52,7 @@
            : config.data,
        time: new Date().getTime(),
      };
      const requestSize = Object.keys(JSON.stringify(requestObj)).length; // 请求数据大小
      const requestSize =  new TextEncoder().encode(JSON.stringify(requestObj)).byteLength; // 请求数据大小
      const limitSize = 5 * 1024 * 1024; // 限制存放数据5M
      if (requestSize >= limitSize) {
        console.warn(