feat(admin): enhance operations guidance and session handling
Some checks failed
lotteryadmin CI / build (push) Has been cancelled

This commit is contained in:
wchino
2026-07-22 20:53:43 +08:00
parent 98a3d0b68e
commit 85ad369cf9
55 changed files with 1477 additions and 342 deletions

View File

@@ -26,7 +26,7 @@ adminHttp.interceptors.response.use(
(response) => response,
(error: unknown) => {
if (isAdminAuthRejected(error)) {
handleAdminAuthRejected();
handleAdminAuthRejected(error);
}
if (isAxiosError(error) && typeof window !== "undefined") {
const status = error.response?.status;
@@ -43,7 +43,7 @@ adminHttp.interceptors.response.use(
function rejectAfterAuthCheck(err: unknown): never {
if (isAdminAuthRejected(err)) {
handleAdminAuthRejected();
handleAdminAuthRejected(err);
}
throw err;
}