Closed
Description
<uploader
:options="options"
:file-status-text="statusText"
class="uploader-example"
ref="uploaderRef"
@file-complete="fileComplete"
@file-added="fileAdd"
@complete="complete"
></uploader>
function fileAdd() {
console.log('file add')
}
结果会打印两次。
看了你的代码,可能是从vue2迁移过来的,vue3的props改版了,事件也会包含在props中。所以会触发两次。
Metadata
Metadata
Assignees
Labels
No labels