refactor(系统设置): 模块管理已经开源
--task=1010909 --user=刘瑞斌 【开源计划】功能模块... https://www.tapd.cn/55049933/s/1323488
This commit is contained in:
parent
17aed53797
commit
b286d9ce99
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue