From c87099de2aeee601f048633cb44f0c3f96243b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E4=B8=81?= Date: Sat, 23 May 2026 14:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=B8=8D=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 +++ src/views/Home.vue | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index edce67b..6deff41 100644 --- a/src/App.vue +++ b/src/App.vue @@ -39,9 +39,11 @@ const showBottomNav = computed(() => { if (!display.smAndDown.value) return false return currentRoute.value === '/' || currentRoute.value === '/search' || currentRoute.value === '/earn-activity' || currentRoute.value === '/profile' }) + const mineTargetPath = computed(() => userStore.isLoggedIn ? '/profile' : '/login', ) + const bottomNavValue = computed({ get() { const p = currentRoute.value @@ -116,6 +118,7 @@ onMounted(async () => { } } }) + watch( () => userStore.isLoggedIn, (loggedIn) => { diff --git a/src/views/Home.vue b/src/views/Home.vue index 34df58d..c48b86b 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -150,12 +150,15 @@ onMounted(() => { window.addEventListener('scroll', update) update() - nextTick(() => { - console.log('home onMounted') + nextTick(async () => { + console.log('home onMounted') if (layerActiveValues.value.length !== 0) { loadEvents(1, false) } else { - + const res = await getPmTagMain() + if (res.code === 0 || res.code === 200) { + menuStore.onCategorySelect(0, res.data[0]?.id || '') + } } }) }) @@ -448,7 +451,7 @@ async function loadEvents(page: number, append: boolean, keyword?: string) { }) nextTick(() => { - + }) } catch (e) { console.log(e) @@ -905,6 +908,7 @@ onActivated(() => { .item-label { flex: 1; + font-weight: 700; } .item-count {