修改: 权限重复
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m27s

This commit is contained in:
sexygoat
2026-02-26 17:34:11 +08:00
parent 3570b062a1
commit f1cb1e53c8
7 changed files with 140 additions and 127 deletions

View File

@@ -458,7 +458,7 @@
{
prop: 'operation',
label: '操作',
width: 280,
width: 190,
fixed: 'right',
formatter: (row: EnterpriseItem) => {
const buttons = []
@@ -481,16 +481,6 @@
)
}
// 只要有编辑、修改密码权限之一,就显示更多操作按钮
if (hasAuth('enterprise_customer:edit') || hasAuth('enterprise_customer:update_pwd')) {
buttons.push(
h(ArtButtonTable, {
text: '更多操作',
onContextmenu: (e: MouseEvent) => showEnterpriseOperationMenu(e, row)
})
)
}
return h('div', { style: 'display: flex; gap: 8px;' }, buttons)
}
}