|
@@ -11,7 +11,7 @@ export default (props) => {
|
11
|
11
|
(attachList || []).map(attach => (
|
12
|
12
|
<div key={attach.attachId}>
|
13
|
13
|
{
|
14
|
|
- !attach.fileType || attach.fileType == 'image' ?
|
|
14
|
+ !attach.fileType || attach.fileType?.indexOf('image') > -1 ?
|
15
|
15
|
<Image style={{width: '100%', height: '100%'}} src={attach.url} /> :
|
16
|
16
|
<video controls style={{width: '100%', height: '100%'}} src={attach.url}></video>
|
17
|
17
|
}
|