From b45c1474529a3fde395c76a7c1e8b4d4a351bcc2 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 2 Jun 2026 07:31:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E=E8=8F=9C=E5=8D=95=E8=A1=8C?= =?UTF-8?q?=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cards/PluginCard.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue index ff4341ed..affc1da7 100644 --- a/src/components/cards/PluginCard.vue +++ b/src/components/cards/PluginCard.vue @@ -102,10 +102,10 @@ async function imageLoaded() { } // 显示更新日志 -function showUpdateHistory() { +function showUpdateHistory(showUpdateAction: boolean = false) { openSharedDialog( PluginVersionHistoryDialog, - { plugin: props.plugin, showUpdateAction: true }, + { plugin: props.plugin, showUpdateAction }, { update: updatePlugin }, { closeOn: ['close', 'update', 'update:modelValue'] }, ) @@ -371,7 +371,7 @@ const dropdownItems = ref([ props: { prependIcon: 'mdi-arrow-up-circle-outline', color: 'success', - click: updatePlugin, + click: () => showUpdateHistory(true), }, }, { @@ -380,7 +380,7 @@ const dropdownItems = ref([ show: !props.plugin?.has_update, props: { prependIcon: 'mdi-update', - click: showUpdateHistory, + click: () => showUpdateHistory(false), }, }, {