fix: 删除log

This commit is contained in:
gaoxiaolin.gao 2018-06-19 17:12:07 +08:00
parent 722fbb9a5c
commit 565b3d8376
2 changed files with 3 additions and 2 deletions

View File

@ -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)}

View File

@ -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)