fix: 参数配置可见visible属性判断

This commit is contained in:
TsMask committed 2025-06-30 16:17:07 +08:00
1 parent a2a7ec3857
commit 2181d51999
1 file changed
+7
+7
View File
@@ -221,6 +221,13 @@ function fnGetNeConfig() {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
const arr = [];
for (const item of res.data) {
// 是否可见
if (!item['visible']) {
item['visible'] = 'public';
} else if (item['visible'] == 'hide') {
continue;
}
// 权限控制
let paramPerms: string[] = [];
if (item.paramPerms) {
paramPerms = item.paramPerms.split(',');