Merge branch 'design'

This commit is contained in:
guozhigq
2024-12-10 23:33:08 +08:00

View File

@ -78,8 +78,8 @@ class _RcmdPageState extends State<RcmdPage>
future: _futureBuilderFuture, future: _futureBuilderFuture,
builder: (context, snapshot) { builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) { if (snapshot.connectionState == ConnectionState.done) {
Map data = snapshot.data as Map; Map? data = snapshot.data;
if (data['status']) { if (data != null && data['status']) {
return Obx( return Obx(
() { () {
if (_rcmdController.isLoadingMore && if (_rcmdController.isLoadingMore &&
@ -94,7 +94,7 @@ class _RcmdPageState extends State<RcmdPage>
); );
} else { } else {
return HttpError( return HttpError(
errMsg: data['msg'], errMsg: data?['msg'] ?? '请求异常',
fn: () { fn: () {
setState(() { setState(() {
_rcmdController.isLoadingMore = true; _rcmdController.isLoadingMore = true;