mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
fix: 修改成员管理bug
This commit is contained in:
parent
9be8f714b5
commit
4b49aba750
@ -6,7 +6,7 @@ import { fetchGroupMsg } from '../../../../reducer/modules/group';
|
||||
import { connect } from 'react-redux';
|
||||
import ErrMsg from '../../../../components/ErrMsg/ErrMsg.js';
|
||||
import { fetchGroupMemberList } from '../../../../reducer/modules/group.js';
|
||||
import {getProjectMemberList, getProject, addMember, delMember, changeMemberRole } from '../../../../reducer/modules/project.js';
|
||||
import { getProjectMemberList, getProject, addMember, delMember, changeMemberRole } from '../../../../reducer/modules/project.js';
|
||||
import UsernameAutoComplete from '../../../../components/UsernameAutoComplete/UsernameAutoComplete.js';
|
||||
import '../Setting.scss';
|
||||
|
||||
@ -156,8 +156,8 @@ class ProjectMember extends Component {
|
||||
}
|
||||
|
||||
async componentWillMount() {
|
||||
console.log('projectMsg', this.props.projectMsg)
|
||||
// await this.props.getProject(this.props.match.params.id)
|
||||
// console.log('projectMsg', this.props.projectMsg)
|
||||
await this.props.getProject(this.props.match.params.id)
|
||||
const groupMemberList = await this.props.fetchGroupMemberList(this.props.projectMsg.group_id);
|
||||
const groupMsg = await this.props.fetchGroupMsg(this.props.projectMsg.group_id);
|
||||
// const rojectMsg = await this.props.getProjectMsg(this.props.match.params.id);
|
||||
|
@ -13,9 +13,10 @@ const WEBROOT_LOG = path.join(WEBROOT_RUNTIME, 'log');
|
||||
const WEBCONFIG = config;
|
||||
|
||||
fs.ensureDirSync(WEBROOT_LOG);
|
||||
console.log('mail', WEBCONFIG.mail)
|
||||
|
||||
if (WEBCONFIG.mail && WEBCONFIG.mail.enable) {
|
||||
|
||||
|
||||
mail = nodemailer.createTransport(WEBCONFIG.mail);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user