瀏覽代碼

修复bug

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
           }