This commit is contained in:
wyf
2025-06-24 19:51:47 +08:00
parent a08574979e
commit 12c6a260c9
5 changed files with 44 additions and 12 deletions

View File

@@ -81,12 +81,11 @@ class _HomeDeviceStausWidgetState extends State<HomeDeviceStausWidget> {
var future = webviewTestController.web.jsbridge?.dart
.appToHtmlDevice(device);
Future.delayed(Duration(seconds: 5), () {
TopSlideNotification.show(context, text: "控制界面初始化中,请稍后再试".tr);
Future.delayed(Duration(seconds: 5), () {
return;
});
await future; // 等待最终完成(即使超过 5 秒)
await future;
MainPageBBottomChange.jumpTo(2);
} catch (e) {
print("发生异常: $e");