import { useRouter } from "next/router";
import { useEffect, useState } from "react";
export default function VerifyPage() {
const router = useRouter();
const { id } = router.query;
const [data, setData] = useState(null);
useEffect(() => {
if (!id) return;
fetch("http://localhost:3001/verify/" + id)
.then(res => res.json())
.then(setData);
}, [id]);
return (
Verification
{JSON.stringify(data, null, 2)});
}
评论 (0)