From d386a2dbbe531c59aa7c7e16508a1bab4d5a2b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Sat, 7 Jan 2023 22:21:48 +0800 Subject: [PATCH] fix: hashtag id --- components/command/CommandPanel.vue | 2 +- components/search/SearchHashtagInfo.vue | 4 +++- components/search/SearchWidget.vue | 2 +- components/search/types.ts | 4 ++-- composables/masto/search.ts | 4 ++-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/components/command/CommandPanel.vue b/components/command/CommandPanel.vue index ed60ff4f..b5c927a2 100644 --- a/components/command/CommandPanel.vue +++ b/components/command/CommandPanel.vue @@ -42,7 +42,7 @@ const searchResult = $computed(() => { const hashtagList = hashtags.value.slice(0, 3) .map(hashtag => ({ type: 'hashtag', - id: hashtag.id, + id: `hashtag-${hashtag.name}`, hashtag, to: getTagRoute(hashtag.name), })) diff --git a/components/search/SearchHashtagInfo.vue b/components/search/SearchHashtagInfo.vue index 0fe2d1fd..f41350c7 100644 --- a/components/search/SearchHashtagInfo.vue +++ b/components/search/SearchHashtagInfo.vue @@ -1,7 +1,9 @@