feat: 去除不用的字段
parent
58da4126c9
commit
a856a66bc2
|
|
@ -54,7 +54,7 @@
|
|||
const asyncComponentConfig = {
|
||||
loadingComponent: LoadingComponent,
|
||||
errorComponent: ErrorComponent,
|
||||
onError: (error: Error, retry: () => void, fail: () => void, attempts: number) => {
|
||||
onError: (_error: Error, retry: () => void, fail: () => void, attempts: number) => {
|
||||
if (attempts <= 3) {
|
||||
retry();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue