Commit 0e25e0f3 by 姜雷

Merge branch 'test' into 'master'

Test See merge request !25
parents 2afb5f1c 95bbe167
...@@ -210,13 +210,13 @@ class ReprtRepair extends Component { ...@@ -210,13 +210,13 @@ class ReprtRepair extends Component {
Toast.success(data.msg); Toast.success(data.msg);
history.replace('/repair/RepairList'); history.replace('/repair/RepairList');
} else { } else {
Promise.reject({ msg: data.msg }); throw data.msg;
} }
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
// Toast.hide(); // Toast.hide();
Toast.fail(err.msg || '提交失败!'); Toast.fail(err.msg || err.message || '提交失败!');
}); });
}; };
resetDialog = () => { resetDialog = () => {
......
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