fix(项目管理): 修复应用设置有时候没有被勾上查询权限的缺陷

--bug=1039029 --user=王孝刚 【项目管理】建议对存在关联的权限为做关联
https://www.tapd.cn/55049933/s/1499719
This commit is contained in:
wxg0103 2024-04-17 14:41:57 +08:00 committed by 刘瑞斌
parent 39b21dccb6
commit d27d3033be
1 changed files with 3 additions and 1 deletions

View File

@ -360,7 +360,9 @@
record.perChecked.push(currentValue);
const preStr = currentValue.split(':')[0];
const postStr = currentValue.split(':')[1];
const existRead = record.perChecked.some((item: string) => item.split(':')[1] === 'READ');
const existRead = record.perChecked.some(
(item: string) => item.split(':')[0] === preStr && item.split(':')[1] === 'READ'
);
if (!existRead && postStr !== 'READ') {
record.perChecked.push(`${preStr}:READ`);
}