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

This commit is contained in:
jxxghp
2026-06-02 07:31:17 +08:00
parent 25bc7c4b3c
commit b45c147452

View File

@@ -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),
},
},
{