Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-18 12:02:42 +08:00
parent 8e4824ab6f
commit 3d4aa7d5a9
13 changed files with 71 additions and 76 deletions

View File

@@ -153,7 +153,7 @@ abstract class CommonIntroController extends GetxController
final res = await (hasLater.value
? UserHttp.toViewDel(aids: IdUtils.bv2av(bvid).toString())
: UserHttp.toViewLater(bvid: bvid));
if (res.isSuccess) hasLater.value = !hasLater.value;
if (res.isSuccess) hasLater.toggle();
}
}
@@ -239,7 +239,7 @@ mixin FavMixin on TripleMixin {
SmartDialog.dismiss();
if (result.isSuccess) {
updateFavCount(hasFav ? -1 : 1);
this.hasFav.value = !hasFav;
this.hasFav.toggle();
SmartDialog.showToast('${hasFav ? '取消' : ''}收藏成功');
} else {
res.toast();