fix: 调整删除按钮展示逻辑

This commit is contained in:
lilinyuan
2024-03-29 16:49:15 +08:00
parent c28b0e306d
commit 658f7de3c0

View File

@@ -120,7 +120,12 @@ const tableConfig = reactive({
return (
<div>
<el-button type="primary" link onClick={()=>handleEdit(row)}>编辑</el-button>
<el-button type="danger" link onClick={()=>handleDel(row)}>删除</el-button>
{
row.userType != 0 ?
<el-button type="danger" link onClick={()=>handleDel(row)}>删除</el-button> :
null
}
</div>
)
}