Browse Source

TBtools-退出登录优化

panyong 4 years ago
parent
commit
4820cd791a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      htmldev/TBTools/src/store/modules/common.js

+ 4 - 0
htmldev/TBTools/src/store/modules/common.js

@@ -31,6 +31,10 @@ export default {
       }).then(({ data }) => {
         if (data.status) {
           commit('updateWebConfig', data.data)
+          // 退出登录时,数据不清空
+          window.SITE_CONFIG['storeState'].common.webConfig = {
+            ...data.data
+          }
         } else {
           Message.error({
             message: data.msg