fix: i18n change

This commit is contained in:
archer
2023-07-25 22:18:18 +08:00
parent b367082d38
commit 2b993b926a
8 changed files with 58 additions and 31 deletions

View File

@@ -9,6 +9,7 @@ import { useUserStore } from '@/store/user';
import { useChatStore } from '@/store/chat';
import LoginForm from './components/LoginForm';
import dynamic from 'next/dynamic';
import { serviceSideProps } from '@/utils/i18n';
const RegisterForm = dynamic(() => import('./components/RegisterForm'));
const ForgetPasswordForm = dynamic(() => import('./components/ForgetPasswordForm'));
@@ -97,4 +98,10 @@ const Login = () => {
);
};
export async function getServerSideProps(context: any) {
return {
props: { ...(await serviceSideProps(context)) }
};
}
export default Login;