Kaynağa Gözat

优化提示

RuoYi 4 yıl önce
ebeveyn
işleme
97c0603269

+ 0 - 11
ruoyi-ui/src/components/ThemePicker/index.vue

@@ -47,14 +47,6 @@ export default {
47
       const themeCluster = this.getThemeCluster(val.replace('#', ''))
47
       const themeCluster = this.getThemeCluster(val.replace('#', ''))
48
       const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
48
       const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
49
 
49
 
50
-      const $message = this.$message({
51
-        message: '  正在切换主题,请稍后...',
52
-        customClass: 'theme-message',
53
-        type: 'success',
54
-        duration: 0,
55
-        iconClass: 'el-icon-loading'
56
-      })
57
-
58
       const getHandler = (variable, id) => {
50
       const getHandler = (variable, id) => {
59
         return () => {
51
         return () => {
60
           const originalCluster = this.getThemeCluster(ORIGINAL_THEME.replace('#', ''))
52
           const originalCluster = this.getThemeCluster(ORIGINAL_THEME.replace('#', ''))
@@ -91,9 +83,6 @@ export default {
91
       })
83
       })
92
 
84
 
93
       this.$emit('change', val)
85
       this.$emit('change', val)
94
-
95
-      $message.close()
96
-
97
     },
86
     },
98
 
87
 
99
     updateStyle(style, oldCluster, newCluster) {
88
     updateStyle(style, oldCluster, newCluster) {

+ 1 - 1
ruoyi-ui/src/utils/request.js

@@ -51,7 +51,7 @@ service.interceptors.response.use(res => {
51
           location.href = '/index';
51
           location.href = '/index';
52
         })
52
         })
53
       }).catch(() => {});
53
       }).catch(() => {});
54
-      return Promise.reject('令牌验证失败')
54
+      return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
55
     } else if (code === 500) {
55
     } else if (code === 500) {
56
       Message({
56
       Message({
57
         message: msg,
57
         message: msg,