|
@ -1,13 +1,9 @@ |
|
|
import { Layout, Tabs, Input, Button, Typography, Row, Col, Form } from "antd"; |
|
|
import { Layout, Tabs, Input, Button, Typography, Row, Col, Form } from "antd"; |
|
|
import { QrcodeOutlined, UserOutlined, LockOutlined } from "@ant-design/icons"; |
|
|
import { QrcodeOutlined, UserOutlined, LockOutlined } from "@ant-design/icons"; |
|
|
import SelectLang from "@/components/select-lang"; |
|
|
|
|
|
import { createFileRoute, useNavigate } from "@tanstack/react-router"; |
|
|
import { createFileRoute, useNavigate } from "@tanstack/react-router"; |
|
|
import { useAtom, useAtomValue } from "jotai"; |
|
|
import { useAtom, useAtomValue } from "jotai"; |
|
|
import { useTranslation } from "@/i18n.ts"; |
|
|
|
|
|
import { |
|
|
import { |
|
|
emailCodeAtom, |
|
|
|
|
|
emailLoginAtom, |
|
|
emailLoginAtom, |
|
|
telegramCodeAtom, |
|
|
|
|
|
telegramLoginAtom, |
|
|
telegramLoginAtom, |
|
|
upLoginAtom, |
|
|
upLoginAtom, |
|
|
} from "@/store/system/user.ts"; |
|
|
} from "@/store/system/user.ts"; |
|
@ -15,6 +11,8 @@ import React, { memo, useEffect, useLayoutEffect, useRef, useState } from "react |
|
|
import systemServ from "@/service/system.ts"; |
|
|
import systemServ from "@/service/system.ts"; |
|
|
import SlideCapt, { SlideCaptRef } from "@/components/captcha/SlideCapt.tsx"; |
|
|
import SlideCapt, { SlideCaptRef } from "@/components/captcha/SlideCapt.tsx"; |
|
|
import { t } from "i18next"; |
|
|
import { t } from "i18next"; |
|
|
|
|
|
import Verification from "@/components/captcha/Verification.tsx"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { Title, Text, Link } = Typography; |
|
|
const { Title, Text, Link } = Typography; |
|
|
const { TabPane } = Tabs; |
|
|
const { TabPane } = Tabs; |
|
@ -259,6 +257,7 @@ const Login = memo(() => { |
|
|
checkCaptcha: systemServ.captchaCheck, |
|
|
checkCaptcha: systemServ.captchaCheck, |
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
|
|
|
<Verification content={"调试用"}/> |
|
|
</Form.Item> |
|
|
</Form.Item> |
|
|
<Button type="primary" htmlType="submit" style={{ width: "100%" }}> |
|
|
<Button type="primary" htmlType="submit" style={{ width: "100%" }}> |
|
|
{languageSet.登录} |
|
|
{languageSet.登录} |
|
|