lrf 1 månad sedan
förälder
incheckning
4237180125
1 ändrade filer med 1 tillägg och 3 borttagningar
  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>