From 87d14a0364d94af4c60048b2ae2f5000b3123ca7 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Fri, 5 Jun 2026 15:12:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E5=B7=A5=E5=85=B7=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/TopNav.vue | 113 +------------------- app/components/index/LeftSidebar.vue | 2 +- app/pages/collect/index.vue | 193 +++++++++++++++++++++++++++++++++-- packages/drizzle-pkg/db.sqlite | Bin 282624 -> 282624 bytes 4 files changed, 187 insertions(+), 121 deletions(-) diff --git a/app/components/TopNav.vue b/app/components/TopNav.vue index eb2f4e3..c1bf97a 100644 --- a/app/components/TopNav.vue +++ b/app/components/TopNav.vue @@ -4,7 +4,6 @@ const fontReady = ref(false) const navHidden = ref(false) const route = useRoute() -const router = useRouter() const { loggedIn, user, clear, initialized } = useAuthSession() @@ -13,22 +12,6 @@ const links: any = [ { to: "/test", label: "测试" }, ] -const searchQuery = ref((route.query.q as string) ?? '') -const searchFocused = ref(false) - -function onSearchSubmit() { - const q = searchQuery.value.trim() - if (!q) return - router.push({ path: '/', query: { q } }) -} - -// When input is cleared, remove the query param -watch(searchQuery, (val) => { - if (!val.trim() && route.query.q) { - router.replace({ path: '/', query: {} }) - } -}) - let lastScrollY = 0 const HIDE_OFFSET = 520 @@ -58,10 +41,6 @@ watch(() => route.path, () => { menuOpen.value = false }) -// Sync search input from URL -watch(() => route.query.q, (val) => { - searchQuery.value = (val as string) ?? '' -})