mod: 网络错误提示消失速度加快

This commit is contained in:
orz12
2024-03-07 20:18:59 +08:00
parent d15443b063
commit e061f756dd

View File

@@ -48,6 +48,7 @@ class ApiInterceptor extends Interceptor {
SmartDialog.showToast( SmartDialog.showToast(
await dioError(err), await dioError(err),
displayType: SmartToastType.onlyRefresh, displayType: SmartToastType.onlyRefresh,
displayTime: const Duration(seconds: 1),
); );
super.onError(err, handler); super.onError(err, handler);
} }