资源删除权限去除

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,7 +84,6 @@ const ResourceCategoryPage = () => {
}}
/>
)}
{through("resource-destroy") && (
<i
className="iconfont icon-icon-delete"
style={{ fontSize: 24 }}
@ -92,7 +91,6 @@ const ResourceCategoryPage = () => {
removeItem(categories[id][i].id, categories[id][i].name)
}
/>
)}
</div>
</>
),
@ -121,7 +119,6 @@ const ResourceCategoryPage = () => {
}}
/>
)}
{through("resource-destroy") && (
<i
className="iconfont icon-icon-delete"
style={{ fontSize: 24 }}
@ -129,7 +126,6 @@ const ResourceCategoryPage = () => {
removeItem(categories[id][i].id, categories[id][i].name)
}
/>
)}
</div>
</>
),