修改密码页面

This commit is contained in:
禺狨
2023-06-26 10:07:20 +08:00
parent 6e2b2beba8
commit 614f9c70ac
5 changed files with 222 additions and 9 deletions

View File

@@ -1,11 +1,11 @@
import React, { useState, useEffect } from "react";
import { useState, useEffect } from "react";
import { Button, Toast, SpinLoading, Input, Image } from "antd-mobile";
import styles from "./index.module.scss";
import { useDispatch, useSelector } from "react-redux";
import { useDispatch } from "react-redux";
import { useNavigate } from "react-router-dom";
import { login, system, user } from "../../api/index";
import { setToken } from "../../utils/index";
import { loginAction, logoutAction } from "../../store/user/loginUserSlice";
import { loginAction } from "../../store/user/loginUserSlice";
import banner from "../../assets/images/login/banner.png";
const LoginPage = () => {
@@ -18,9 +18,6 @@ const LoginPage = () => {
const [captchaVal, setCaptchaVal] = useState<string>("");
const [captchaKey, setCaptchaKey] = useState<string>("");
const [captchaLoading, setCaptchaLoading] = useState(true);
const loginState = useSelector((state: any) => {
return state.loginUser.value;
});
useEffect(() => {
fetchImageCaptcha();
@@ -61,9 +58,6 @@ const LoginPage = () => {
});
return;
}
if (loading) {
return;
}
handleSubmit();
};