mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
refactor: reply
This commit is contained in:
@@ -34,7 +34,7 @@ class RcmdController extends PopupController {
|
||||
}
|
||||
|
||||
@override
|
||||
List? handleResponse(List currentList, List dataList) {
|
||||
List? handleListResponse(List currentList, List dataList) {
|
||||
return currentPage == 1 && enableSaveLastData
|
||||
? dataList +
|
||||
(currentList.isEmpty ? <RecVideoItemAppModel>[] : currentList)
|
||||
|
||||
@@ -101,11 +101,8 @@ class _RcmdPageState extends State<RcmdPage>
|
||||
errMsg: _controller.loadingState.value is Error
|
||||
? (_controller.loadingState.value as Error).errMsg
|
||||
: '没有相关数据',
|
||||
fn: () {
|
||||
_controller.loadingState.value =
|
||||
LoadingState.loading();
|
||||
_controller.onRefresh();
|
||||
}),
|
||||
fn: _controller.onReload,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user