|
@@ -90,7 +90,7 @@
|
|
|
:action="action"
|
|
|
:on-success="onAddSuccess"
|
|
|
:on-error="onAddError"
|
|
|
- :on-preview="onAddPreview"
|
|
|
+ :on-progress="onAddProcess"
|
|
|
:headers="uploadHeaders"
|
|
|
:show-file-list="false"
|
|
|
:file-list="fileList">
|
|
@@ -132,7 +132,7 @@
|
|
|
:action="action"
|
|
|
:on-success="onEditSuccess"
|
|
|
:on-error="onEditError"
|
|
|
- :on-preview="onEditPreview"
|
|
|
+ :on-progress="onEditProcess"
|
|
|
:headers="uploadHeaders"
|
|
|
:show-file-list="false"
|
|
|
:file-list="fileList">
|
|
@@ -265,7 +265,7 @@ export default {
|
|
|
this.editLoading = false
|
|
|
this.$message.error('头像上传失败,请重新上传!')
|
|
|
},
|
|
|
- onEditPreview () {
|
|
|
+ onEditProcess () {
|
|
|
this.editLoading = true
|
|
|
},
|
|
|
onAddSuccess (response, file, fileList) {
|
|
@@ -276,7 +276,7 @@ export default {
|
|
|
this.addLoading = false
|
|
|
this.$message.error('头像上传失败,请重新上传!')
|
|
|
},
|
|
|
- onAddPreview (event, file, fileList) {
|
|
|
+ onAddProcess (event, file, fileList) {
|
|
|
this.addLoading = true
|
|
|
},
|
|
|
handleSubmitEdit () {
|