fix(消息管理): 消息通知除执行事件外不显示操作人
This commit is contained in:
parent
701f5e3b5b
commit
cb3d2ed2ea
|
@ -322,7 +322,11 @@
|
||||||
function getReceiverOptions(options, event: string) {
|
function getReceiverOptions(options, event: string) {
|
||||||
if (event === 'CREATE') {
|
if (event === 'CREATE') {
|
||||||
// 创建事件的接收人不包含操作人、创建人、关注人
|
// 创建事件的接收人不包含操作人、创建人、关注人
|
||||||
return options.filter((e) => !['OPERATOR', 'CREATE_USER', 'FOLLOW_PEOPLE'].includes(e.id));
|
options = options.filter((e) => !['OPERATOR', 'CREATE_USER', 'FOLLOW_PEOPLE'].includes(e.id));
|
||||||
|
}
|
||||||
|
if (event.indexOf('EXECUTE') === -1) {
|
||||||
|
// 除执行事件,都不显示操作人
|
||||||
|
options = options.filter((e) => !['OPERATOR'].includes(e.id));
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue