From 4ad9e4f4c64ed5d7c99d5537375100891ccdf3df Mon Sep 17 00:00:00 2001 From: al Date: Thu, 12 Sep 2024 19:14:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drole=E4=B8=8D=E4=B8=BA3?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E6=98=BE=E7=A4=BA=E4=BC=9A=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/my/page.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/app/my/page.js b/app/my/page.js index 650150e..d2cf46e 100644 --- a/app/my/page.js +++ b/app/my/page.js @@ -16,6 +16,7 @@ const My = () => { // setUserInfo(userInfo); getData(userInfo); } + console.log("userInfo", userInfo); // getData(userInfo); }, []); const getData = async (oldUserInfo) => { @@ -151,7 +152,27 @@ const My = () => { style={{ "--size": "76px", "--border-radius": "50%" }} />
-

{userInfo.name}

+ +

+ {userInfo.name} +

+ {userInfo?.is_a_member === 1 && ( + + )} +