资源删除权限去除

This commit is contained in:
禺狨 2023-06-13 10:57:24 +08:00
parent fd2f1327ac
commit 8171b16bc6
2 changed files with 18 additions and 24 deletions

View File

@ -200,15 +200,13 @@ const ResourceImagesPage = () => {
<Button className="mr-16" onClick={() => selectAll()}>
</Button>
<PerButton
<Button
disabled={selectKey.length === 0}
type="primary"
text="删除"
class=""
icon={null}
p="resource-destroy"
onClick={() => removeResource()}
/>
>
</Button>
</>
)}
</div>

View File

@ -84,15 +84,13 @@ const ResourceCategoryPage = () => {
}}
/>
)}
{through("resource-destroy") && (
<i
className="iconfont icon-icon-delete"
style={{ fontSize: 24 }}
onClick={() =>
removeItem(categories[id][i].id, categories[id][i].name)
}
/>
)}
<i
className="iconfont icon-icon-delete"
style={{ fontSize: 24 }}
onClick={() =>
removeItem(categories[id][i].id, categories[id][i].name)
}
/>
</div>
</>
),
@ -121,15 +119,13 @@ const ResourceCategoryPage = () => {
}}
/>
)}
{through("resource-destroy") && (
<i
className="iconfont icon-icon-delete"
style={{ fontSize: 24 }}
onClick={() =>
removeItem(categories[id][i].id, categories[id][i].name)
}
/>
)}
<i
className="iconfont icon-icon-delete"
style={{ fontSize: 24 }}
onClick={() =>
removeItem(categories[id][i].id, categories[id][i].name)
}
/>
</div>
</>
),