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