fix: 调整删除按钮展示逻辑
This commit is contained in:
@@ -120,7 +120,12 @@ const tableConfig = reactive({
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" link onClick={()=>handleEdit(row)}>编辑</el-button>
|
<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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user