lrf 1 месяц назад
Родитель
Сommit
4237180125
1 измененных файлов с 1 добавлено и 3 удалено
  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>