|
@@ -172,11 +172,11 @@ function AddGoods({ nowSta, closeFu, succFu, isEdit, editSnap }: Props) {
|
|
|
const fileNameArr = item.fileName.split('.')
|
|
|
const fileNameLast = fileNameArr[fileNameArr.length - 1]
|
|
|
|
|
|
- return fileImgArr.includes(fileNameLast) ? (
|
|
|
+ return fileImgArr.includes(fileNameLast.toLowerCase()) ? (
|
|
|
<div className='tableImgAuto'>
|
|
|
<ImageLazy width={60} height={60} srcBig={item.filePath} src={item.thumb} />
|
|
|
</div>
|
|
|
- ) : fileVideoArr.includes(fileNameLast) ? (
|
|
|
+ ) : fileVideoArr.includes(fileNameLast.toLowerCase()) ? (
|
|
|
<YtableVideo src={item.filePath} />
|
|
|
) : (
|
|
|
' - '
|
|
@@ -288,7 +288,7 @@ function AddGoods({ nowSta, closeFu, succFu, isEdit, editSnap }: Props) {
|
|
|
const imgArr = table.filter(v => {
|
|
|
const txtArr = v.fileName.split('.')
|
|
|
const txt = txtArr[txtArr.length - 1]
|
|
|
- return v.type === 'img' && fileImgArr.includes(txt)
|
|
|
+ return v.type === 'img' && fileImgArr.includes(txt.toLowerCase())
|
|
|
})
|
|
|
|
|
|
let thumb = ''
|