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