Browse Source

合并util

gemercheung 3 years ago
parent
commit
10c42da2ef
1 changed files with 3 additions and 0 deletions
  1. 3 0
      utils/util.js

+ 3 - 0
utils/util.js

@@ -97,6 +97,9 @@ function request(url, data = {}, method = "POST", header = "application/x-www-fo
                                 }
                             }
                         }
+                        if (res.data.code === 200) {
+                            res.data.code = 0
+                        }
                         console.error(res.data)
                         jx(res.data)
                         resolve(res.data);