fix:增加配网超时逻辑
This commit is contained in:
parent
7308429c24
commit
2bca1e285c
@ -212,7 +212,15 @@ class ConfiguringWifiLogic extends BaseGetXController {
|
|||||||
// 显示加载指示器
|
// 显示加载指示器
|
||||||
showEasyLoading();
|
showEasyLoading();
|
||||||
state.isLoading.value = true;
|
state.isLoading.value = true;
|
||||||
// 模拟异步请求
|
// 添加15秒超时检查
|
||||||
|
Future.delayed(const Duration(seconds: 15), () {
|
||||||
|
if (state.isLoading.isTrue) {
|
||||||
|
EasyLoading.dismiss();
|
||||||
|
state.isLoading.value = false;
|
||||||
|
state.sureBtnState.value = 0;
|
||||||
|
showToast('配网失败'.tr);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取设备状态
|
// 获取设备状态
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user