30秒
This commit is contained in:
@@ -24,8 +24,8 @@ const UI9: React.FC = () => {
|
|||||||
navigate("/");
|
navigate("/");
|
||||||
}, [navigate]);
|
}, [navigate]);
|
||||||
|
|
||||||
const [countdown, setCountdown] = useState(10);
|
const [countdown, setCountdown] = useState(30);
|
||||||
const [backTime, setBackTime] = useState("确认(10S)");
|
const [backTime, setBackTime] = useState("确认(30S)");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (countdown > 0) {
|
if (countdown > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user