刷新条件
This commit is contained in:
@@ -140,8 +140,7 @@ class SiteController extends GetxController with BaseControllerMixin {
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
renderData();
|
||||
//加载列表数据
|
||||
fetchReservationData();
|
||||
|
||||
startAutoRefresh();
|
||||
}
|
||||
|
||||
@@ -158,7 +157,7 @@ class SiteController extends GetxController with BaseControllerMixin {
|
||||
|
||||
// 创建一个每5分钟执行一次的周期性定时器
|
||||
_refreshTimer = Timer.periodic(const Duration(minutes: 5), (timer) {
|
||||
fetchReservationData();
|
||||
renderData();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -578,7 +577,9 @@ class SiteController extends GetxController with BaseControllerMixin {
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
updateUi();
|
||||
|
||||
//加载列表数据
|
||||
fetchReservationData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user