zhangjie hai 4 días
pai
achega
999ecf2780
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/common.ts

+ 1 - 1
src/utils/common.ts

@@ -342,7 +342,7 @@ export const getTaskImageUrl = (filePath: string) => {
   const [fbasename, fext] = filePath.split('.')
   if (!fbasename) return []
   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)
   return [`${fpath}/1/${fname}-1.${fext}`, `${fpath}/2/${fname}-2.${fext}`]
 }