Commit ccc46150 by 姜雷

修改throw语句

parent fccdfe74
...@@ -210,7 +210,7 @@ class ReprtRepair extends Component { ...@@ -210,7 +210,7 @@ class ReprtRepair extends Component {
Toast.success(data.msg); Toast.success(data.msg);
history.replace('/repair/RepairList'); history.replace('/repair/RepairList');
} else { } else {
throw { msg: data.msg }; Promise.reject({ msg: data.msg });
} }
}) })
.catch(err => { .catch(err => {
......
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