Преглед изворни кода

fix: 登出主题不变色

johnsen пре 1 недеља
родитељ
комит
7c0b182646
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      src/store/modules/ibps/modules/account.js

+ 6 - 6
src/store/modules/ibps/modules/account.js

@@ -178,9 +178,9 @@ export default {
     logout({ commit, dispatch }, { vm, confirm = false }) {
       // 判断是否需要确认
       if (confirm) {
-        commit('ibps/gray/set', true, {
-          root: true
-        })
+        // commit('ibps/gray/set', true, {
+        //   root: true
+        // })
         MessageBox.confirm(vm.$t('logout.message'), vm.$t('logout.title'), {
           confirmButtonText: vm.$t('logout.confirmButtonText'),
           cancelButtonText: vm.$t('logout.cancelButtonText'),
@@ -214,7 +214,7 @@ export default {
               name: 'login'
             })
           })
-          .catch(() => {})
+          .catch(() => { })
         return
       }
       // 后台登出
@@ -226,7 +226,7 @@ export default {
                 name: 'login'
               })
             })
-            .catch(() => {})
+            .catch(() => { })
         })
         .catch(() => {
           dispatch('fedLogout')
@@ -235,7 +235,7 @@ export default {
                 name: 'login'
               })
             })
-            .catch(() => {})
+            .catch(() => { })
         })
     },
     /**