lrf 3 years ago
parent
commit
c1eac2f005
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/plugins/check-res.js

+ 2 - 2
src/plugins/check-res.js

@@ -15,8 +15,8 @@ const Plugin = {
       if (!_.isFunction(okText) && _.isObject(okText) && okText != null) {
         ({ okText: _okText, errText: _errText } = okText);
       }
-      const { errcode = 200, errmsg } = res || {};
-      if (errcode === 200) {
+      const { errcode = 0, errmsg } = res || {};
+      if (errcode === 0) {
         if (_.isFunction(_okText)) {
           return _okText();
         }