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 @@