fix(项目管理): 修复应用设置有时候没有被勾上查询权限的缺陷
--bug=1039029 --user=王孝刚 【项目管理】建议对存在关联的权限为做关联 https://www.tapd.cn/55049933/s/1499719
This commit is contained in:
parent
39b21dccb6
commit
d27d3033be
|
@ -360,7 +360,9 @@
|
||||||
record.perChecked.push(currentValue);
|
record.perChecked.push(currentValue);
|
||||||
const preStr = currentValue.split(':')[0];
|
const preStr = currentValue.split(':')[0];
|
||||||
const postStr = currentValue.split(':')[1];
|
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') {
|
if (!existRead && postStr !== 'READ') {
|
||||||
record.perChecked.push(`${preStr}:READ`);
|
record.perChecked.push(`${preStr}:READ`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue