소스 검색

【深爱】【反馈:2025100132】【做单的时候提交提示:接口异常 提示优化调整】

wuyx 1 개월 전
부모
커밋
0c19de7fca
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      uas-office-web/wxuasapproval/src/utils/fetchRequest.js

+ 8 - 8
uas-office-web/wxuasapproval/src/utils/fetchRequest.js

@@ -133,17 +133,17 @@ function fetchResult (request) {
         return resultJson
       } else {
         if (result.exceptionInfo) {
-          if (result.exceptionInfo.length > 80) {
-            throw '接口请求异常'
-          } else {
+          // if (result.exceptionInfo.length > 80) {
+          //   throw '接口请求异常'
+          // } else {
             throw result.exceptionInfo.replace(/<[\/\!]*[^<>]*>/ig, '')
-          }
+          // }
         } else if (result.message) {
-          if (result.message.length > 80) {
-            throw '接口请求异常'
-          } else {
+          // if (result.message.length > 80) {
+          //   throw '接口请求异常'
+          // } else {
             throw result.message.replace(/<[\/\!]*[^<>]*>/ig, '')
-          }
+          // }
         } else {
           throw result
         }