Преглед на файлове

1、重启App添加时间

tags/0.0.9+10
PH2 преди 4 години
родител
ревизия
a0ddb25f1d
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. +3
    -1
      lib/pages/custom_page/custom_item_page.dart

+ 3
- 1
lib/pages/custom_page/custom_item_page.dart Целия файл

@@ -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;


Зареждане…
Отказ
Запис