资源删除权限去除

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 className="mr-16" onClick={() => selectAll()}>
</Button> </Button>
<PerButton <Button
disabled={selectKey.length === 0} disabled={selectKey.length === 0}
type="primary" type="primary"
text="删除"
class=""
icon={null}
p="resource-destroy"
onClick={() => removeResource()} onClick={() => removeResource()}
/> >
</Button>
</> </>
)} )}
</div> </div>

View File

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