|
@@ -342,7 +342,7 @@ export const getTaskImageUrl = (filePath: string) => {
|
|
const [fbasename, fext] = filePath.split('.')
|
|
const [fbasename, fext] = filePath.split('.')
|
|
if (!fbasename) return []
|
|
if (!fbasename) return []
|
|
const ffs = fbasename.split('/')
|
|
const ffs = fbasename.split('/')
|
|
- const fpath = ffs.slice(0, -1).join('/')
|
|
|
|
|
|
+ const fpath = ffs.slice(0, -2).join('/')
|
|
const fname = ffs[ffs.length - 1].substring(0, ffs[ffs.length - 1].length - 2)
|
|
const fname = ffs[ffs.length - 1].substring(0, ffs[ffs.length - 1].length - 2)
|
|
return [`${fpath}/1/${fname}-1.${fext}`, `${fpath}/2/${fname}-2.${fext}`]
|
|
return [`${fpath}/1/${fname}-1.${fext}`, `${fpath}/2/${fname}-2.${fext}`]
|
|
}
|
|
}
|