mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 21:30:24 +08:00
Allow org admin to access GetResources()
This commit is contained in:
@ -210,16 +210,14 @@ class ResourceListPage extends BaseListPage {
|
||||
if (record.fileType === "image") {
|
||||
return (
|
||||
<a target="_blank" rel="noreferrer" href={record.url}>
|
||||
<img src={record.url} alt={record.name} width={100} />
|
||||
<img src={record.url} alt={record.name} width={200} />
|
||||
</a>
|
||||
);
|
||||
} else if (record.fileType === "video") {
|
||||
return (
|
||||
<div>
|
||||
<video width={100} controls>
|
||||
<source src={text} type="video/mp4" />
|
||||
</video>
|
||||
</div>
|
||||
<video width={200} controls>
|
||||
<source src={record.url} type="video/mp4" />
|
||||
</video>
|
||||
);
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user