模块启用
作者:王书硕
go
go项目,获取功能权限是否开启
b := ctx.GetBusinessModuleById(gen_ec.EC_BusinessModule_BusinessModule_budget)
// b.IsEnabled
前端
import { store } from '@models';
class A {
b() {
const contractModel = store.moduleInitManager.getModuleById('BusinessModule_contract');
if ( !contractModel || !contractModel.isEnabled ) {
// ...
}
}
}