|
|
@@ -433,7 +433,7 @@ var App = function (_Component) {
|
|
433
|
433
|
_this6.setState({ list: list, total: total + 1 });
|
|
434
|
434
|
_this6.props.onCountChange(total + 1);
|
|
435
|
435
|
}).catch(function (error) {
|
|
436
|
|
- _this6.props.onCommentFail(error.response.status);
|
|
|
436
|
+ _this6.props.onCommentFail(error.response.status, error.response.data);
|
|
437
|
437
|
_this6.errorHandler(error);
|
|
438
|
438
|
}).finally(function () {
|
|
439
|
439
|
_this6.handleChangeLoading("sCreateComment", false);
|
|
|
@@ -508,7 +508,10 @@ var App = function (_Component) {
|
|
508
|
508
|
});
|
|
509
|
509
|
_this8.props.onUpdateComment("comment");
|
|
510
|
510
|
_this8.setState({ list: list });
|
|
511
|
|
- }).catch(this.errorHandler).finally(function () {
|
|
|
511
|
+ }).catch(function (error) {
|
|
|
512
|
+ _this8.props.onCommentFail(error.response.status, error.response.data);
|
|
|
513
|
+ _this8.errorHandler(error);
|
|
|
514
|
+ }).finally(function () {
|
|
512
|
515
|
_this8.handleChangeLoading("sUpdateComment", false);
|
|
513
|
516
|
});
|
|
514
|
517
|
}
|
|
|
@@ -551,7 +554,7 @@ var App = function (_Component) {
|
|
551
|
554
|
});
|
|
552
|
555
|
_this9.setState({ list: list });
|
|
553
|
556
|
}).catch(function (error) {
|
|
554
|
|
- _this9.props.onCommentFail(error.response.status);
|
|
|
557
|
+ _this9.props.onCommentFail(error.response.status, error.response.data);
|
|
555
|
558
|
_this9.errorHandler(error);
|
|
556
|
559
|
}).finally(function () {
|
|
557
|
560
|
_this9.handleChangeLoading("sCreateReply", false);
|
|
|
@@ -627,7 +630,10 @@ var App = function (_Component) {
|
|
627
|
630
|
_this11.sGetReply({ commentId: commentId, page: i });
|
|
628
|
631
|
}
|
|
629
|
632
|
_this11.props.onUpdateComment("reply");
|
|
630
|
|
- }).catch(this.errorHandler).finally(function () {
|
|
|
633
|
+ }).catch(function (error) {
|
|
|
634
|
+ _this11.props.onCommentFail(error.response.status, error.response.data);
|
|
|
635
|
+ _this11.errorHandler(error);
|
|
|
636
|
+ }).finally(function () {
|
|
631
|
637
|
_this11.handleChangeLoading("sUpdateReply", false);
|
|
632
|
638
|
});
|
|
633
|
639
|
}
|