From 04c0e081c41e44be655559a4b59fc14a1d67becf Mon Sep 17 00:00:00 2001 From: Sayamame-beans <61457993+Sayamame-beans@users.noreply.github.com> Date: Tue, 21 May 2024 22:21:05 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=E6=A4=9C=E7=B4=A2?= =?UTF-8?q?=E3=81=8B=E3=82=89=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E3=82=BF?= =?UTF-8?q?=E3=82=B0=E3=81=AE=E3=83=9A=E3=83=BC=E3=82=B8=E3=82=92=E9=96=8B?= =?UTF-8?q?=E3=81=91=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/search.note.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend/src/pages/search.note.vue b/packages/frontend/src/pages/search.note.vue index d68bbaeeca..3945baa00a 100644 --- a/packages/frontend/src/pages/search.note.vue +++ b/packages/frontend/src/pages/search.note.vue @@ -92,6 +92,11 @@ async function search() { return; } + if (query.startsWith('#') && query.length > 1) { + router.push(`/tags/${encodeURIComponent(query.substring(1))}`); + return; + } + notePagination.value = { endpoint: 'notes/search', limit: 10,