From e4643cf358c336b6676fdbc26389de4d563f93a2 Mon Sep 17 00:00:00 2001 From: al Date: Wed, 21 Aug 2024 13:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9B=B4=E5=A4=9A=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/my/editUserProfile/editUserName/page.js | 4 ++-- app/space/[id]/page.js | 15 +++++++++------ components/Photos/index.js | 6 ++++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/app/my/editUserProfile/editUserName/page.js b/app/my/editUserProfile/editUserName/page.js index 70ddd88..4cb27c6 100644 --- a/app/my/editUserProfile/editUserName/page.js +++ b/app/my/editUserProfile/editUserName/page.js @@ -9,11 +9,11 @@ import { getUserInfo } from "@/api/public"; import { get, save } from "@/utils/storeInfo"; import requireAPI from "@/utils/requireAPI"; import { utf8Length } from "@/utils/tools"; -const account = get("account"); + export default function EditUserName() { const router = useRouter(); const [name, setName] = useState(); - + const account = get("account"); useEffect(() => { const getName = async () => { setName(account.name); diff --git a/app/space/[id]/page.js b/app/space/[id]/page.js index 1a5ab98..ff29314 100644 --- a/app/space/[id]/page.js +++ b/app/space/[id]/page.js @@ -184,11 +184,7 @@ export default function PersonSpace() { }} /> - router.push( "setting?data=" + @@ -207,7 +203,14 @@ export default function PersonSpace() { ) ) } - /> + > + + {/* 内容 */}
diff --git a/components/Photos/index.js b/components/Photos/index.js index befcb5f..3a3da7b 100644 --- a/components/Photos/index.js +++ b/components/Photos/index.js @@ -322,11 +322,13 @@ export default function Photos({ className="absolute top-0 w-full h-full flex justify-center items-center bg-[#33333348]" onClick={handleSeeAllPhotos} > - +{currentPhotos.length} + + +{photos.length - currentPhotos.length} +
) : (