Browse Source

no message

linwenxin 4 months ago
parent
commit
f2af54a3a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/http/index.js

+ 1 - 1
src/common/http/index.js

@@ -55,7 +55,7 @@ export const $http = (url, method, data, json, loadingBool = false, isExecute =
       return res
     }
     if (whiteCodes.indexOf(res.code) < 0) {
-      if (res.message == 'USERPAYING') {
+      if (~res.message.indexOf('USERPAYING')) {
         return Promise.reject(new Error(res.message || 'Error'))
       }
       if (res.code === 1001) {