src/utils/request/index.ts
@@ -120,6 +120,9 @@ const errorInfo: ErrorInfo | undefined = (error as any).info; if (errorInfo) { const { errorMessage, errorCode } = errorInfo; if (Number(errorCode) === 401) { handleLogout(); } switch (errorInfo.showType) { case ErrorShowType.SILENT: // do nothing