|
@@ -1,19 +1,21 @@
|
|
|
"use client";
|
|
|
import { getLoginApi, getUserInfoApi } from "@/api/user";
|
|
|
-import DomainFooter from "@/components/DomainFooter";
|
|
|
-import HeaderBack from "@/components/HeaderBack";
|
|
|
import { useRouter } from "@/i18n";
|
|
|
import { useGlobalStore } from "@/stores";
|
|
|
import { Toast } from "antd-mobile";
|
|
|
import { useTranslations } from "next-intl";
|
|
|
import { useSearchParams } from "next/navigation";
|
|
|
+import dynamic from "next/dynamic";
|
|
|
import { FC, useState } from "react";
|
|
|
-import FromCom from "./component/FromCom";
|
|
|
-import GoogleCom from "./component/GoogleCom";
|
|
|
import "./page.scss";
|
|
|
|
|
|
interface Props {}
|
|
|
|
|
|
+const HeaderBack = dynamic(() => import('@/components/HeaderBack'));
|
|
|
+const FromCom = dynamic(() => import('./component/FromCom'));
|
|
|
+const GoogleCom = dynamic(() => import('./component/GoogleCom'));
|
|
|
+const DomainFooter = dynamic(() => import('@/components/DomainFooter'));
|
|
|
+
|
|
|
const Login: FC<Props> = () => {
|
|
|
const t = useTranslations("LoginPage");
|
|
|
const { setToken, setUserInfo } = useGlobalStore();
|