Commit 279408dc authored by baixian's avatar baixian

优化

parent 4ee62bf4
......@@ -13,7 +13,8 @@ class ChooseClassModal extends React.Component {
}
componentWillUnmount() { // 卸载
}
save = () => {
save = (e) => {
e.preventDefault();
const {
form, save,
} = this.props;
......
......@@ -23,7 +23,8 @@ class EditClassModal extends React.Component {
});
}
}
save = () => {
save = (e) => {
e.preventDefault();
const { form, save } = this.props;
form.validateFields((err, values) => {
if (!err) {
......
......@@ -18,7 +18,8 @@ class TeacherCodeModal extends React.Component {
}
componentWillUnmount() { // 卸载
}
save = () => {
save = (e) => {
e.preventDefault();
const {
form, save,
} = this.props;
......@@ -27,7 +28,6 @@ class TeacherCodeModal extends React.Component {
const {
rid,
} = values;
console.log(values, 'values');
save({
rid,
callBack: () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment