fix: 调整插件更新说明菜单行为

This commit is contained in:
jxxghp
2026-06-02 07:31:17 +08:00
parent 25bc7c4b3c
commit b45c147452
+4 -4
View File
@@ -102,10 +102,10 @@ async function imageLoaded() {
} }
// 显示更新日志 // 显示更新日志
function showUpdateHistory() { function showUpdateHistory(showUpdateAction: boolean = false) {
openSharedDialog( openSharedDialog(
PluginVersionHistoryDialog, PluginVersionHistoryDialog,
{ plugin: props.plugin, showUpdateAction: true }, { plugin: props.plugin, showUpdateAction },
{ update: updatePlugin }, { update: updatePlugin },
{ closeOn: ['close', 'update', 'update:modelValue'] }, { closeOn: ['close', 'update', 'update:modelValue'] },
) )
@@ -371,7 +371,7 @@ const dropdownItems = ref([
props: { props: {
prependIcon: 'mdi-arrow-up-circle-outline', prependIcon: 'mdi-arrow-up-circle-outline',
color: 'success', color: 'success',
click: updatePlugin, click: () => showUpdateHistory(true),
}, },
}, },
{ {
@@ -380,7 +380,7 @@ const dropdownItems = ref([
show: !props.plugin?.has_update, show: !props.plugin?.has_update,
props: { props: {
prependIcon: 'mdi-update', prependIcon: 'mdi-update',
click: showUpdateHistory, click: () => showUpdateHistory(false),
}, },
}, },
{ {