Merge branch 'feature-readRender'

This commit is contained in:
guozhigq
2024-09-28 18:30:02 +08:00
3 changed files with 45 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);