mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-27 04:40:08 +08:00
fix: 删除log
This commit is contained in:
parent
722fbb9a5c
commit
565b3d8376
@ -180,7 +180,6 @@ class ProjectMember extends Component {
|
||||
|
||||
// 修改用户是否接收邮件通知
|
||||
changeEmailNotice = async (notice, member_uid) => {
|
||||
console.log('e', notice);
|
||||
const id = this.props.match.params.id;
|
||||
await this.props.changeMemberEmailNotice({ id, member_uid, notice });
|
||||
this.reFetchList(); // 添加成功后重新获取项目成员列表
|
||||
@ -251,6 +250,8 @@ class ProjectMember extends Component {
|
||||
<span>
|
||||
<Switch
|
||||
size="small"
|
||||
checkedChildren="开"
|
||||
unCheckedChildren="关"
|
||||
checked={record.email_notice}
|
||||
disabled={!(isEmailChangeEable || record.uid === this.props.uid)}
|
||||
onChange={e => this.changeEmailNotice(e, record.uid)}
|
||||
|
@ -929,7 +929,7 @@ class interfaceController extends baseController {
|
||||
const projectList = await this.projectModel.get(projectId);
|
||||
// const projectMembers = projectList.members.map(item => item.uid);
|
||||
const projectMembers = projectList.members.filter(item => item.email_notice).map(item => item.uid);
|
||||
console.log('projectMember', projectMembers)
|
||||
|
||||
|
||||
const users = this.arrUnique(projectMembers, starUsers);
|
||||
const usersInfo = await this.userModel.findByUids(users)
|
||||
|
Loading…
Reference in New Issue
Block a user