"use client"; import React,{useEffect,useState} from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faAngleRight } from "@fortawesome/free-solid-svg-icons"; import { Avatar, Image } from "antd-mobile"; import { useRouter,useSearchParams } from "next/navigation"; import withAuth from "@/components/WithAuth"; import {get} from "@/utils/storeInfo"; const My = () => { const [userInfo, setUserInfo] = useState({}); const searchParams = useSearchParams(); const router = useRouter(); useEffect(() => { const userInfo = get("account"); if (userInfo) { setUserInfo(userInfo); } },[]) return (
{userInfo.name}
1
关注
0
粉丝
{userInfo.gold_num}
金币
{userInfo.diamond_num}
钻石