zhengyiming
8 天以前 66d33a33b254d9db7a9dfa7c178d0aeb234f4fb8
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