spring
12 小时以前 5e94a2858a40bc32f3b0369172e16ce17597714a
src/components/Dialog/FileListDialog.vue
@@ -229,10 +229,9 @@
const handleUpload = async () => {
  if (props.uploadMethod) {
    const newItem = await props.uploadMethod()
    if (newItem) {
      addAttachment(newItem)
    }
    // 如果提供了自定义上传方法,由父组件负责更新列表(通过 setList)
    // 这里不再自动添加,避免与父组件的 setList 重复
    await props.uploadMethod()
  }
  emit('upload')
}