From df924d18f151deba72ba84780add6b07d212c612 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 11 May 2023 16:29:34 +0900 Subject: fix(frontend): チャンネル内の検索ボックスが挙動不審な問題を修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #10793 --- packages/frontend/src/pages/channel.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'packages/frontend/src') diff --git a/packages/frontend/src/pages/channel.vue b/packages/frontend/src/pages/channel.vue index af1b4d2056..9aa564a7da 100644 --- a/packages/frontend/src/pages/channel.vue +++ b/packages/frontend/src/pages/channel.vue @@ -46,7 +46,7 @@ {{ i18n.ts.search }} - + @@ -93,6 +93,7 @@ let channel = $ref(null); let favorited = $ref(false); let searchQuery = $ref(''); let searchPagination = $ref(); +let searchKey = $ref(''); const featuredPagination = $computed(() => ({ endpoint: 'notes/featured' as const, limit: 10, @@ -149,10 +150,12 @@ async function search() { endpoint: 'notes/search', limit: 10, params: { - query: searchQuery, + query: query, channelId: channel.id, }, }; + + searchKey = query; } const headerActions = $computed(() => { -- cgit v1.3.1-freya