From 7546da4f907e6a159c2312f31ebd3f4bf59f54fd Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 18 Jul 2025 11:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A2=E9=98=85=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E9=A1=B5=E9=9D=A2=E5=8F=8A=E7=9B=B8=E5=85=B3=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialog/SearchBarDialog.vue | 44 ++++++++++++++++++++++ src/locales/en-US.ts | 1 + src/locales/zh-CN.ts | 1 + src/locales/zh-TW.ts | 1 + src/pages/subscribe-share.vue | 16 ++++++++ src/router/index.ts | 8 ++++ src/views/subscribe/SubscribeShareView.vue | 12 ++++++ 7 files changed, 83 insertions(+) create mode 100644 src/pages/subscribe-share.vue diff --git a/src/components/dialog/SearchBarDialog.vue b/src/components/dialog/SearchBarDialog.vue index 5cbf418d..80e2e2ee 100644 --- a/src/components/dialog/SearchBarDialog.vue +++ b/src/components/dialog/SearchBarDialog.vue @@ -298,6 +298,19 @@ function searchHistory() { emit('close') } +// 跳转到订阅分享页面 +function searchSubscribeShares() { + if (!searchWord.value) return + saveRecentSearches(searchWord.value) + router.push({ + path: '/subscribe-share', + query: { + keyword: searchWord.value, + }, + }) + emit('close') +} + // 跳转插件页面 function showPlugin(pluginId: string) { router.push({ @@ -484,6 +497,37 @@ onMounted(() => { + + + +