Enable reloading attachments after uploading attachments

pull/9/head
johnniang 2019-04-15 18:36:14 +08:00
parent b82a4ac2d1
commit 81150ddf0b
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,7 @@ export default {
attachments: [],
pagination: {
page: 1,
size: 16,
size: 12,
sort: ''
}
}
@ -230,6 +230,7 @@ export default {
.upload(data, source.token, option.onProgress)
.then(response => {
option.onSuccess(response, option.file)
this.loadAttachments()
})
.catch(error => {
option.onError(error, error.response)