opt: 移除回复点赞冗余加载提示
This commit is contained in:
@ -24,7 +24,7 @@ class _ZanButtonState extends State<ZanButton> {
|
||||
// 评论点赞
|
||||
onLikeReply() async {
|
||||
feedBack();
|
||||
SmartDialog.showLoading(msg: 'pilipala ...');
|
||||
// SmartDialog.showLoading(msg: 'pilipala ...');
|
||||
ReplyItemModel replyItem = widget.replyItem!;
|
||||
int oid = replyItem.oid!;
|
||||
int rpid = replyItem.rpid!;
|
||||
@ -32,7 +32,7 @@ class _ZanButtonState extends State<ZanButton> {
|
||||
int action = replyItem.action == 0 ? 1 : 0;
|
||||
var res = await ReplyHttp.likeReply(
|
||||
type: widget.replyType!.index, oid: oid, rpid: rpid, action: action);
|
||||
SmartDialog.dismiss();
|
||||
// SmartDialog.dismiss();
|
||||
if (res['status']) {
|
||||
SmartDialog.showToast(replyItem.action == 0 ? '点赞成功 👍' : '取消赞 💔');
|
||||
if (action == 1) {
|
||||
|
Reference in New Issue
Block a user