lrf 1 bulan lalu
induk
melakukan
4237180125
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      src/components/custom/custom-upload.vue

+ 1 - 3
src/components/custom/custom-upload.vue

@@ -71,9 +71,7 @@ const onSuccess = (response, file) => {
 }
 // 删除图片
 const onRemove = (file, fileList) => {
-  let l = cloneDeep(l)
-  l = l.filter((f) => f.uri !== get(file, 'uri'))
-  emits('update:modelValue', l)
+  list.value.filter((f) => f.uri !== get(file, 'uri'))
   return true
 }
 </script>