Browse Source

登录 修改 注册 人机接口加上 多语言加上

main
lk 2 months ago
parent
commit
fec0a87cee
  1. 7
      src/pages/use/login/index.tsx
  2. 9
      src/pages/use/register/index.tsx

7
src/pages/use/login/index.tsx

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

9
src/pages/use/register/index.tsx

@ -9,6 +9,12 @@ import systemServ from "@/service/system.ts";
import { t } from "i18next";
import SlideCapt, { SlideCaptRef } from "@/components/captcha/SlideCapt.tsx";
const { Title, Text, Link } = Typography;
const Register = memo(() => {
const languageSet = {
向量检索服务免费试用: t("register.vectorRetrievalServiceFreeTrial", "向量检索服务免费试用"),
免费试用向量检索服务玩转大模型生成式检索: t(
@ -29,9 +35,6 @@ const languageSet = {
返回登录: t("register.backToLogin", "返回登录"),
};
const { Title, Text, Link } = Typography;
const Register = memo(() => {
const navigate = useNavigate();
const [registerForm] = Form.useForm();
const { mutate: emailRegisterMutate } = useAtomValue(emailRegisterAtom);

Loading…
Cancel
Save