zhangjie 4 ngày trước cách đây
mục cha
commit
999ecf2780
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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}`]
 }