From d79ea2b8613ed826652fe7c2930d03a13db65824 Mon Sep 17 00:00:00 2001 From: 666ghj <670939375@qq.com> Date: Fri, 9 Jan 2026 11:22:36 +0800 Subject: [PATCH] refactor(HistoryDatabase): enhance loading logic and card positioning - Added route watcher to reload history data when navigating back to the homepage. - Improved card positioning by adjusting vertical spacing for better visual alignment. - Initialized IntersectionObserver to manage card visibility more effectively. - Ensured data loading occurs after DOM rendering for smoother user experience. --- frontend/src/components/HistoryDatabase.vue | 55 +++++++++++++++------ 1 file changed, 39 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/HistoryDatabase.vue b/frontend/src/components/HistoryDatabase.vue index 1443abf..962ab51 100644 --- a/frontend/src/components/HistoryDatabase.vue +++ b/frontend/src/components/HistoryDatabase.vue @@ -86,11 +86,12 @@