fix: Resolve the agent upgrade issue (#12780)

This commit is contained in:
CityFun
2026-05-21 12:39:50 +08:00
committed by zhengkunwang223
parent 4627e7c0af
commit 46986fba24
3 changed files with 4 additions and 2 deletions
+3
View File
@@ -578,6 +578,9 @@ func checkAgentUpgradable(install model.AppInstall) bool {
if install.App.ID == 0 {
return false
}
if ignoreUpdate(install) {
return false
}
details, err := appDetailRepo.GetBy(appDetailRepo.WithAppId(install.App.ID))
if err != nil || len(details) == 0 {
return false
@@ -81,7 +81,6 @@
<el-dropdown-menu>
<fu-dropdown-item
v-if="defaultable && !row.isDefault"
v-permission
command="default"
:disabled="disabled || isBotActionDisabled(row)"
>
+1 -1
View File
@@ -341,7 +341,7 @@ const buttons = [
label: i18n.global.t('commons.button.upgrade'),
permission: true,
click: (row: AI.AgentItem) => openUpgrade(row),
disabled: (row: AI.AgentItem) => !row.upgradable,
show: (row: AI.AgentItem) => row.upgradable,
},
{
label: i18n.global.t('commons.button.delete'),