Browse Source

feat: 去除文件名后缀

tangning 1 year ago
parent
commit
0d223160f7
1 changed files with 1 additions and 1 deletions
  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,
       }
     })