From 25a68b1f3ef7919c4b0935e5c5cf65470609a67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 6 Dec 2023 21:57:33 -0500 Subject: [PATCH] refactor(pages): rename session data variable in setup script i want to make sure only super duper important variables are named "data". --- pages/user/[id].vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/user/[id].vue b/pages/user/[id].vue index 293ef80..548d2b8 100644 --- a/pages/user/[id].vue +++ b/pages/user/[id].vue @@ -8,7 +8,7 @@ import adminPanel from "~/components/profile/adminPanel.vue"; const rtr = useRoute(); - const { data } = useAuth(); + const { data: ses } = useAuth(); const { data: userInfo } = await useApiFetch(`/user/${rtr.params.id}`); if (userInfo === null) { @@ -22,9 +22,9 @@ ); const isSelf = userInfo.value?._id === parseInt(rtr.params.id as string); - - console.log("rtr", rtr); - console.log("LVLVLVLVVLV", new Date(uLastVisit)); + useHead({ + title: `Viewing profile for ${userInfo.value.username}`, + });