fix: archive msg 404

This commit is contained in:
Tristan Yang
2023-03-07 17:39:46 +08:00
parent 1e69d534ec
commit 69595bec3c
+2 -1
View File
@@ -101,7 +101,8 @@ const baseQueryWithTokenCheck = async (args: any, api: any, extraOptions: any) =
break; break;
case 404: case 404:
{ {
if (api.endpoint !== "login") { const whiteList404 = ["login", "getArchiveMessage"];
if (!whiteList404.includes(api.endpoint)) {
toast.error("Request Not Found"); toast.error("Request Not Found");
} }
} }