fix: bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m50s

This commit is contained in:
sexygoat
2026-04-23 15:52:18 +08:00
parent 0bc2efdf0e
commit 8ca03ed7ac
4 changed files with 80 additions and 37 deletions

View File

@@ -371,8 +371,8 @@
)
}
// 如果操作数量 <= 2,直接显示所有按钮
if (actionList.length <= 2) {
// 如果操作数量 <= 3,直接显示所有按钮
if (actionList.length <= 3) {
return h(
'div',
{ style: 'display: flex; gap: 8px;' },
@@ -390,7 +390,7 @@
)
}
// 如果操作数量 > 2,显示第一个 + 更多下拉菜单
// 如果操作数量 > 3,显示第一个 + 更多下拉菜单
const firstAction = actionList[0]
const moreActions = actionList.slice(1)