ソースを参照

feat: 去除文件名后缀

tangning 1 年間 前
コミット
0d223160f7
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/view/case/addPhotoFileAll.vue

+ 1 - 1
src/view/case/addPhotoFileAll.vue

@@ -159,7 +159,7 @@ defineExpose<QuiskExpose>({
     let imgUrls = fileList.value.map(item => {
       return {
         imgUrl: item.raw && item.raw.url,
-        imgInfo: item.name,
+        imgInfo: item.name.replace(/\.[^/.]+$/, ""),
         caseId: props.caseId,
       }
     })