import { Row, Col, Form, Input, Button, message } from "antd"; // import styles from "./create.module.less"; import { login } from "../../api/index"; import { useNavigate } from "react-router-dom"; import { BackBartment } from "../../compenents"; const ChangePasswordPage = () => { const navigate = useNavigate(); const [form] = Form.useForm(); const onFinish = (values: any) => { login .passwordChange(values.old_password, values.new_password) .then((res: any) => { message.success("保存成功!"); navigate(-1); }); }; const onFinishFailed = (errorInfo: any) => { console.log("Failed:", errorInfo); }; return ( <>
); }; export default ChangePasswordPage;