ソースを参照

[new]增加导出超时

zk 1 年間 前
コミット
1ce3113aa0
1 ファイル変更3 行追加0 行削除
  1. 3 0
      lib/module/talk/controller.dart

+ 3 - 0
lib/module/talk/controller.dart

@@ -759,6 +759,9 @@ class TalkController extends BaseController {
     };
 
     try {
+      Future.delayed(const Duration(seconds: 10), () {
+        throw Exception('导出超时');
+      });
       _temporaryController.value = temporaryController;
       temporaryController.loadFlutterAsset(Assets.html.indexExport);
       temporaryController.setNavigationDelegate(