From 45eee811c1751aa509c42c0d4ddbb6b8b5270ca9 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 22 Apr 2025 17:25:18 +0800 Subject: [PATCH] fix https://github.com/jxxghp/MoviePilot-Frontend/issues/326 --- package.json | 2 +- src/components/cards/MediaCard.vue | 10 +++++++--- src/components/dialog/SearchSiteDialog.vue | 13 ++++++------- src/views/discover/MediaDetailView.vue | 10 +++++++--- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 881e3876..558b7e75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moviepilot", - "version": "2.4.1", + "version": "2.4.2", "private": true, "bin": "dist/service.js", "scripts": { diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue index a9c5a62a..25fa701d 100644 --- a/src/components/cards/MediaCard.vue +++ b/src/components/cards/MediaCard.vue @@ -334,10 +334,14 @@ function goMediaDetail(isHovering = false) { // 点击搜索 async function clickSearch() { if (allSites.value?.length == 0) { - querySites() - querySelectedSites() + await querySites() + await querySelectedSites() + } + if (allSites.value?.length > 0) { + chooseSiteDialog.value = true + } else { + handleSearch() } - chooseSiteDialog.value = true } // 开始搜索 diff --git a/src/components/dialog/SearchSiteDialog.vue b/src/components/dialog/SearchSiteDialog.vue index 66d0f124..794a9410 100644 --- a/src/components/dialog/SearchSiteDialog.vue +++ b/src/components/dialog/SearchSiteDialog.vue @@ -1,6 +1,5 @@