mirror of https://github.com/halo-dev/halo-admin
Enable reloading attachments after uploading attachments
parent
b82a4ac2d1
commit
81150ddf0b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue