Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -44,7 +44,7 @@ export struct ZhSingleRow06 { | @@ -44,7 +44,7 @@ export struct ZhSingleRow06 { | ||
| 44 | 44 | ||
| 45 | const commentInfo = this.compDTO.operDataList[0]?.commentInfo as commentInfo; | 45 | const commentInfo = this.compDTO.operDataList[0]?.commentInfo as commentInfo; |
| 46 | // commentLikeChange(this.item) | 46 | // commentLikeChange(this.item) |
| 47 | - this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1'; | 47 | + // this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1'; |
| 48 | const commentLikeParam = { | 48 | const commentLikeParam = { |
| 49 | targetId: commentInfo.newsId || '', | 49 | targetId: commentInfo.newsId || '', |
| 50 | id: commentInfo.commentId, | 50 | id: commentInfo.commentId, |
| @@ -52,8 +52,9 @@ export struct ZhSingleRow06 { | @@ -52,8 +52,9 @@ export struct ZhSingleRow06 { | ||
| 52 | api_status: this.newsStatusOfUser?.likeStatus == '1' ? false : true | 52 | api_status: this.newsStatusOfUser?.likeStatus == '1' ? false : true |
| 53 | } as commentItemModel; | 53 | } as commentItemModel; |
| 54 | commentViewModel.commentLike(commentLikeParam).then(() => { | 54 | commentViewModel.commentLike(commentLikeParam).then(() => { |
| 55 | - }).catch(() => { | ||
| 56 | this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1'; | 55 | this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1'; |
| 56 | + }).catch((err: Error) => { | ||
| 57 | + console.log('06-err', JSON.stringify(err)) | ||
| 57 | }) | 58 | }) |
| 58 | } | 59 | } |
| 59 | 60 |
-
Please register or login to post a comment