fix: default enter page for user

This commit is contained in:
jialin
2025-11-10 20:40:15 +08:00
parent 9eb1dba4a1
commit b4b25d4300
12 changed files with 48 additions and 39 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import { userAtom } from '@/atoms/user';
import { clearAtomStorage } from '@/atoms/utils';
import { RequestConfig, history } from '@umijs/max';
import { message } from 'antd';
import { DEFAULT_ENTER_PAGE } from './config/settings';
// no base URL APIs
const NoBaseURLAPIs = ['/auth', '/v1-openai', '/version', '/proxy', '/update'];
@@ -24,7 +25,7 @@ export const requestConfig: RequestConfig = {
if (response?.status === 401) {
clearAtomStorage(userAtom);
history.push('/login', { replace: true });
history.push(DEFAULT_ENTER_PAGE.login, { replace: true });
}
}
},