fix(系统设置): 在导入license后,一级导航栏刷新显示为空白
--bug=1019172 --user=李玉号 [BUG]新部署的MS V2.3版本,在导入license后,一级导航栏刷新显示为空白,需优化 #19322 https://www.tapd.cn/55049933/s/1284084 Closes #19322
This commit is contained in:
parent
b1efad9531
commit
2e9490ffa1
|
@ -49,10 +49,11 @@ import MsView from "../../components/layout/View";
|
|||
import MxLicenseMessage from "../../components/MxLicenseMessage";
|
||||
import MxTheme from "../../components/MxTheme";
|
||||
import {hasLicense} from "../../utils/permission";
|
||||
import {checkMicroMode, setAsideColor, setColor, setCustomizeColor, setDefaultTheme, setLightColor} from "../../utils";
|
||||
import {setAsideColor, setColor, setCustomizeColor, setDefaultTheme, setLightColor} from "../../utils";
|
||||
import {ORIGIN_COLOR} from "../../utils/constants";
|
||||
import {getDisplayInfo, getSystemTheme, isLogin} from "../../api/user";
|
||||
import {useUserStore} from "@/store";
|
||||
import {getModuleList} from "../../api/module";
|
||||
|
||||
|
||||
export default {
|
||||
|
@ -95,6 +96,13 @@ export default {
|
|||
// this.$store.commit('setTheme', res.data);
|
||||
});
|
||||
this.getDisplayInfo();
|
||||
getModuleList().then(response => {
|
||||
let modules = {};
|
||||
response.data.forEach(m => {
|
||||
modules[m.key] = m.status;
|
||||
});
|
||||
localStorage.setItem('modules', JSON.stringify(modules));
|
||||
});
|
||||
}
|
||||
|
||||
this.isFixed = localStorage.getItem('app-fixed') === 'true' || false;
|
||||
|
|
Loading…
Reference in New Issue