Переглянути джерело

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

wuyx 1 місяць тому
батько
коміт
b6301254d7

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

@@ -160,12 +160,12 @@ function fetchResult (request) {
         return resultJson
       } else {
         if (result.exceptionInfo || result.message) {
-          if ((result.exceptionInfo || result.message).length > 80) {
-            throw '接口请求异常'
-          } else {
+          // if ((result.exceptionInfo || result.message).length > 80) {
+          //   throw '接口请求异常'
+          // } else {
             throw (result.exceptionInfo || result.message).replace(
               /<[\/\!]*[^<>]*>/ig, '')
-          }
+          // }
         } else {
           throw result
         }
@@ -173,12 +173,12 @@ function fetchResult (request) {
     }).then(result => {
       if (result.hasOwnProperty('success') && result.success === false) {
         if (result.exceptionInfo || result.message) {
-          if ((result.exceptionInfo || result.message).length > 80) {
-            throw '接口请求异常'
-          } else {
+          // if ((result.exceptionInfo || result.message).length > 80) {
+          //   throw '接口请求异常'
+          // } else {
             throw (result.exceptionInfo || result.message).replace(
               /<[\/\!]*[^<>]*>/ig, '')
-          }
+          // }
         } else {
           throw result
         }