spring
3 天以前 3739a47340c8d8b6edf5fdcbb0534f5fc8d96530
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')
}