🐛 fix(config): Bugs
This commit is contained in:
@@ -7,10 +7,9 @@ import { getAuthorization, Logout } from './common';
|
||||
|
||||
async function handleError(response: any) {
|
||||
const code = response.data?.code;
|
||||
if ([40002, 40003, 40004].includes(code)) return Logout();
|
||||
if (response?.config?.skipErrorHandler) return;
|
||||
if (!isBrowser()) return;
|
||||
if ([40002, 40003, 40004].includes(code)) return Logout();
|
||||
|
||||
const t = await getTranslations('common');
|
||||
const message =
|
||||
t(`request.${code}`) !== `request.${code}`
|
||||
|
||||
Reference in New Issue
Block a user