feat: 动态点赞/取消赞

This commit is contained in:
guozhigq
2023-07-24 22:02:03 +08:00
parent 1c744e3f59
commit 85eeacebb8
9 changed files with 160 additions and 54 deletions

View File

@ -46,9 +46,9 @@ class DynamicsController extends GetxController {
RxInt initialValue = 1.obs;
Future queryFollowDynamic({type = 'init'}) async {
// if (type == 'init') {
// dynamicsList!.value = [];
// }
if (type == 'init') {
dynamicsList.clear();
}
var res = await DynamicsHttp.followDynamic(
page: type == 'init' ? 1 : page,
type: dynamicsType.value.values,