diff --git a/src/components/AiUploader.vue b/src/components/AiUploader.vue index e4f001dd..699b6d1b 100644 --- a/src/components/AiUploader.vue +++ b/src/components/AiUploader.vue @@ -88,6 +88,7 @@ export default { this.$emit('list', this.fileList) }, upload(wait) { + typeof wait == 'function' && wait() let count = this.limit - (this.fileList?.length||0) if(count>0){ let params = { @@ -108,7 +109,6 @@ export default { } }, } - typeof wait == 'function' && wait() if (this.type == 'image') { uni.chooseImage(params) } else if (this.type == 'video') {