mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-24 20:40:11 +08:00
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user