From 2e9490ffa135ba18d7d83ea9d30ef940b491f241 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 31 Oct 2022 17:51:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=9C=A8=E5=AF=BC=E5=85=A5license=E5=90=8E=EF=BC=8C=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E5=AF=BC=E8=88=AA=E6=A0=8F=E5=88=B7=E6=96=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=BA=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019172 --user=李玉号 [BUG]新部署的MS V2.3版本,在导入license后,一级导航栏刷新显示为空白,需优化 #19322 https://www.tapd.cn/55049933/s/1284084 Closes #19322 --- .../frontend/src/business/app-layout/index.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/business/app-layout/index.vue b/framework/sdk-parent/frontend/src/business/app-layout/index.vue index 32c54b903b..2ffb6ee606 100644 --- a/framework/sdk-parent/frontend/src/business/app-layout/index.vue +++ b/framework/sdk-parent/frontend/src/business/app-layout/index.vue @@ -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;