chore: fix lint

This commit is contained in:
07akioni 2021-07-01 01:03:45 +08:00
parent 0a3e60da6a
commit b09818195d
3 changed files with 12 additions and 10 deletions

View File

@ -71,7 +71,7 @@ export default defineComponent({
}
},
handleFileListChange (value) {
message.info("Yes, file-list changed.")
message.info('Yes, file-list changed.')
}
}
}

View File

@ -68,7 +68,7 @@ export default defineComponent({
}
},
handleFileListChange (value) {
message.info("是的file-list 的值变了")
message.info('是的file-list 的值变了')
}
}
}

View File

@ -327,21 +327,23 @@ export default defineComponent({
file: file,
url: null
}
if (!onBeforeUpload || await onBeforeUpload({
if (
!onBeforeUpload ||
(await onBeforeUpload({
file: fileInfo,
fileList: mergedFileListRef.value
}) !== false) {
})) !== false
) {
doChange(fileInfo, e, {
append: true
})
}
})
)
.then(() => {
if (props.defaultUpload) {
submit()
}
})
).then(() => {
if (props.defaultUpload) {
submit()
}
})
}
function submit (fileId?: string): void {
const {