mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 08:37:59 +00:00
v4.6.2-alpah (#511)
This commit is contained in:
@@ -9,10 +9,11 @@ import { useChatStore } from '@/web/core/chat/storeChat';
|
||||
import LoginForm from './components/LoginForm';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { serviceSideProps } from '@/web/common/utils/i18n';
|
||||
import { setToken } from '@/web/support/user/auth';
|
||||
import { clearToken, setToken } from '@/web/support/user/auth';
|
||||
import { feConfigs } from '@/web/common/system/staticData';
|
||||
import CommunityModal from '@/components/CommunityModal';
|
||||
import Script from 'next/script';
|
||||
import { loginOut } from '@/web/support/user/api';
|
||||
const RegisterForm = dynamic(() => import('./components/RegisterForm'));
|
||||
const ForgetPasswordForm = dynamic(() => import('./components/ForgetPasswordForm'));
|
||||
|
||||
@@ -53,6 +54,7 @@ const Login = () => {
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
clearToken();
|
||||
router.prefetch('/app/list');
|
||||
}, []);
|
||||
|
||||
|
Reference in New Issue
Block a user