From 6dfb6b3cb08afea6fa89e39237fd5ca236bba834 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sun, 10 Mar 2024 14:21:36 +0800 Subject: [PATCH] fix:HomeUIModel --- lib/ui/home/home_ui_model.dart | 4 ++-- lib/ui/home/home_ui_model.g.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ui/home/home_ui_model.dart b/lib/ui/home/home_ui_model.dart index 105aceb..a2a1d14 100644 --- a/lib/ui/home/home_ui_model.dart +++ b/lib/ui/home/home_ui_model.dart @@ -253,9 +253,9 @@ class HomeUIModel extends _$HomeUIModel { Future _loadRRS() async { try { final rssVideoItems = await RSSApi.getRssVideo(); + state = state.copyWith(rssVideoItems: rssVideoItems); final rssTextItems = await RSSApi.getRssText(); - state = state.copyWith( - rssVideoItems: rssVideoItems, rssTextItems: rssTextItems); + state = state.copyWith(rssTextItems: rssTextItems); dPrint("RSS update Success !"); } catch (e) { dPrint("_loadRRS Error:$e"); diff --git a/lib/ui/home/home_ui_model.g.dart b/lib/ui/home/home_ui_model.g.dart index ecc8ad2..9a7d2c9 100644 --- a/lib/ui/home/home_ui_model.g.dart +++ b/lib/ui/home/home_ui_model.g.dart @@ -6,7 +6,7 @@ part of 'home_ui_model.dart'; // RiverpodGenerator // ************************************************************************** -String _$homeUIModelHash() => r'4ef5c2bdf2d9a506b2e139d321c52c97cf4bc30d'; +String _$homeUIModelHash() => r'a911826a7b852408123bf4b8999ac80c3c582fd4'; /// See also [HomeUIModel]. @ProviderFor(HomeUIModel)