refactor(系统设置): 模块管理已经开源

--task=1010909 --user=刘瑞斌 【开源计划】功能模块... https://www.tapd.cn/55049933/s/1323488
This commit is contained in:
CaptainB 2023-01-06 14:07:01 +08:00
parent 17aed53797
commit b286d9ce99
1 changed files with 1 additions and 8 deletions

View File

@ -146,16 +146,9 @@ export default {
},
check(key) {
let microApps = JSON.parse(sessionStorage.getItem("micro_apps"));
if (hasLicense()) {
return this.modules[key] === 'ENABLE' && microApps[key];
}
return microApps && microApps[key];
return this.modules[key] === 'ENABLE' && microApps && microApps[key];
},
registerEvents() {
if (!hasLicense()) {
return;
}
getModuleList()
.then(response => {
response.data.forEach(m => {