This commit is contained in:
2023-10-29 17:10:39 +08:00
parent 3a63f1acfa
commit 8db2766c19
3 changed files with 14 additions and 3 deletions

View File

@ -84,7 +84,7 @@ class DownloaderDialogUIModel extends BaseUIModel {
}
} catch (e) {
if (e is DioException && e.type != DioExceptionType.cancel) {
if (mounted) showToast(context!, "下载失败:$e");
Navigator.pop(context!, e);
}
}
}