From 7614c0980e54c2274c8af5d8424839c59cbb2d88 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Sat, 11 Jul 2026 23:25:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=A6=E6=83=85=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=A6=96=E9=A1=B5=E5=81=9C=E7=95=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 2 +- frontend/src/App.vue | 9 +- .../listings/views/MobileHomeView.vue | 113 ++++++++++++++++-- frontend/src/router/index.ts | 9 ++ 4 files changed, 120 insertions(+), 13 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 7bd1602..1e4ccfc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ - 哈夫币租号平台 + 大锤商行 diff --git a/frontend/src/App.vue b/frontend/src/App.vue index e27b114..1df1c16 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -8,6 +8,9 @@ import InAppBrowserPrompt from './components/InAppBrowserPrompt.vue' import AdminLayout from './layouts/AdminLayout.vue' import AppLayout from './layouts/AppLayout.vue' +/** 移动端从详情返回时保留列表状态与滚动位置 */ +const mobileKeepAliveIncludes = ['MobileHomeView'] + const route = useRoute() const layout = computed(() => { if (route.path === '/m' || route.path.startsWith('/m/')) { @@ -23,7 +26,11 @@ const layout = computed(() => { - + + + + + diff --git a/frontend/src/features/listings/views/MobileHomeView.vue b/frontend/src/features/listings/views/MobileHomeView.vue index b0770b0..7fc04cd 100644 --- a/frontend/src/features/listings/views/MobileHomeView.vue +++ b/frontend/src/features/listings/views/MobileHomeView.vue @@ -1,9 +1,17 @@