RuoYi
2021-09-08 97c0603269874042021be73ae958366225b1c88d
优化提示
2 files modified
13 ■■■■■ changed files
ruoyi-ui/src/components/ThemePicker/index.vue 11 ●●●●● patch | view | raw | blame | history
ruoyi-ui/src/utils/request.js 2 ●●● patch | view | raw | blame | history
ruoyi-ui/src/components/ThemePicker/index.vue
@@ -47,14 +47,6 @@
      const themeCluster = this.getThemeCluster(val.replace('#', ''))
      const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
      const $message = this.$message({
        message: '  正在切换主题,请稍后...',
        customClass: 'theme-message',
        type: 'success',
        duration: 0,
        iconClass: 'el-icon-loading'
      })
      const getHandler = (variable, id) => {
        return () => {
          const originalCluster = this.getThemeCluster(ORIGINAL_THEME.replace('#', ''))
@@ -91,9 +83,6 @@
      })
      this.$emit('change', val)
      $message.close()
    },
    updateStyle(style, oldCluster, newCluster) {
ruoyi-ui/src/utils/request.js
@@ -51,7 +51,7 @@
          location.href = '/index';
        })
      }).catch(() => {});
      return Promise.reject('令牌验证失败')
      return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
    } else if (code === 500) {
      Message({
        message: msg,