Yansen преди 1 година
родител
ревизия
4c81de0c4e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      src/pages/issue/detail/components/AttachList.jsx

+ 1
- 1
src/pages/issue/detail/components/AttachList.jsx Целия файл

@@ -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
           }