Browse Source

1、重启App添加时间

tags/0.0.9+10
PH2 3 years ago
parent
commit
a0ddb25f1d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      lib/pages/custom_page/custom_item_page.dart

+ 3
- 1
lib/pages/custom_page/custom_item_page.dart View File

@@ -137,7 +137,9 @@ class __CustomItemPageContainerState extends State<_CustomItemPageContainer> wit
if (current is CustomItemPageAppRestartState) {
// 重启App
Logger.log('开始重新启动App CustomItemPageAppRestartState');
EventUtil.instance.fire(ReloadEvent());
Timer(Duration(milliseconds: 1000), () {
EventUtil.instance.fire(ReloadEvent());
});
return false;
}
return true;


Loading…
Cancel
Save