RuoYi
2021-07-25 9920957796f9b0b0e3e7319e3360112688e470c0
ruoyi-ui/src/utils/request.js
@@ -27,7 +27,7 @@
    for (const propName of Object.keys(config.params)) {
      const value = config.params[propName];
      var part = encodeURIComponent(propName) + "=";
      if (typeof(value) !== "undefined") {
      if (value !== null && typeof(value) !== "undefined") {
        if (typeof value === 'object') {
          for (const key of Object.keys(value)) {
            let params = propName + '[' + key + ']';
@@ -65,7 +65,8 @@
        store.dispatch('LogOut').then(() => {
          location.href = '/index';
        })
      })
      }).catch(() => {});
      return Promise.reject('error')
    } else if (code === 500) {
      Message({
        message: msg,