feat: cv专栏记录

This commit is contained in:
guozhigq
2024-09-28 18:22:42 +08:00
parent fbf327cb9a
commit 7d5ce08bfc
2 changed files with 42 additions and 2 deletions

View File

@ -23,6 +23,7 @@ class ReadPageController extends GetxController {
id = Get.parameters['id']!;
articleType = Get.parameters['articleType']!;
scrollController.addListener(_scrollListener);
fetchViewInfo();
}
Future fetchCvData() async {
@ -80,6 +81,10 @@ class ReadPageController extends GetxController {
);
}
void fetchViewInfo() {
ReadHttp.getViewInfo(id: id);
}
@override
void onClose() {
scrollController.removeListener(_scrollListener);