From 9246fd6bb1693eb7b8baa7a3505a2f93292a1ace Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 15 Dec 2022 14:00:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0license=E5=90=8E=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E5=B7=A6=E4=BE=A7=E8=8F=9C=E5=8D=95=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=8F=8A=E6=97=B6=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1020767 --user=刘瑞斌 【系统设置】离线包安装后,上传license,系统左侧的菜单会变成空白的 https://www.tapd.cn/55049933/s/1315863 --- .../src/components/layout/AsideMenus.vue | 12 +++++++++--- .../src/business/system/license/MxLicense.vue | 17 ++++++++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/layout/AsideMenus.vue b/framework/sdk-parent/frontend/src/components/layout/AsideMenus.vue index a63c0c8a83..aaa02fae9c 100644 --- a/framework/sdk-parent/frontend/src/components/layout/AsideMenus.vue +++ b/framework/sdk-parent/frontend/src/components/layout/AsideMenus.vue @@ -156,10 +156,16 @@ export default { if (!hasLicense()) { return; } - ModuleEvent.$on(MODULE_CHANGE, (key, status) => { - getModuleList().then(() => { - this.menuKey++; + getModuleList() + .then(response => { + response.data.forEach(m => { + this.modules[m.key] = m.status; + }); + localStorage.setItem('modules', JSON.stringify(this.modules)); + }) + .catch(() => { }); + ModuleEvent.$on(MODULE_CHANGE, (key, status) => { this.$set(this.modules, key, status); this.menuKey++; }); diff --git a/system-setting/frontend/src/business/system/license/MxLicense.vue b/system-setting/frontend/src/business/system/license/MxLicense.vue index b32f5cd2cc..f70cda551d 100644 --- a/system-setting/frontend/src/business/system/license/MxLicense.vue +++ b/system-setting/frontend/src/business/system/license/MxLicense.vue @@ -63,8 +63,9 @@