wupengfei
8 天以前 d9b4a5767e8a5f02bd1f4662ca68a0ce4dc8b9e0
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