lex-xin 3 년 전
부모
커밋
9d24ef1d8c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/store/modules/user.js

+ 4 - 0
src/store/modules/user.js

@@ -116,7 +116,11 @@ const actions = {
           tenantConfig = tenantConfig ? JSON.parse(tenantConfig) : {}
           tenantConfig = tenantConfig ? JSON.parse(tenantConfig) : {}
           if(tenantConfig.tenantStatus != 'on') {
           if(tenantConfig.tenantStatus != 'on') {
             await tenantQueryPage(tenantId)
             await tenantQueryPage(tenantId)
+            // 会重置数据
+            tenantConfig = sessionStorage.getItem('tenantConfig')
+            tenantConfig = tenantConfig ? JSON.parse(tenantConfig) : {}
           }
           }
+          console.log(tenantConfig)
           if(tenantId > 0) { // 判断是机构才会根据主题去设置
           if(tenantId > 0) { // 判断是机构才会根据主题去设置
             const themeColor = tenantConfig.themeColor
             const themeColor = tenantConfig.themeColor
             const theme = tenantConfig.theme
             const theme = tenantConfig.theme