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: [],
|
attachments: [],
|
||||||
pagination: {
|
pagination: {
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 16,
|
size: 12,
|
||||||
sort: ''
|
sort: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,6 +230,7 @@ export default {
|
||||||
.upload(data, source.token, option.onProgress)
|
.upload(data, source.token, option.onProgress)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
option.onSuccess(response, option.file)
|
option.onSuccess(response, option.file)
|
||||||
|
this.loadAttachments()
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
option.onError(error, error.response)
|
option.onError(error, error.response)
|
||||||
|
|
Loading…
Reference in New Issue