fix: toast显示、seek后历史记录不请求

This commit is contained in:
guozhigq
2023-09-17 14:20:11 +08:00
parent 1d9372b4f1
commit 5c68772f7b
2 changed files with 6 additions and 2 deletions

View File

@ -46,7 +46,10 @@ class ApiInterceptor extends Interceptor {
void onError(DioException err, ErrorInterceptorHandler handler) async {
// 处理网络请求错误
// handler.next(err);
SmartDialog.showToast(await dioError(err));
SmartDialog.showToast(
await dioError(err),
displayType: SmartToastType.onlyRefresh,
);
super.onError(err, handler);
}