更新
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user