|
@@ -40,6 +40,7 @@
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
:auto-upload="true"
|
|
|
:name="name"
|
|
|
+ multiple
|
|
|
>
|
|
|
</el-upload>
|
|
|
</div>
|
|
@@ -81,12 +82,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- uploadsuccess (response, file, fileList) {
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
- if (0 === response.status) {
|
|
|
- this.uploadArr.push(response.data);
|
|
|
+ uploadsuccess (file, fileList) {
|
|
|
+ if (file.status == 0) {
|
|
|
+ this.uploadArr.push(fileList.response.data);
|
|
|
}
|
|
|
},
|
|
|
+ // uploadsuccess (response, file, fileList) {
|
|
|
+ // this.$refs.upload.clearFiles();
|
|
|
+ // if (0 === response.status) {
|
|
|
+ // // this.uploadArr.push(response.data);
|
|
|
+ // }
|
|
|
+ // },
|
|
|
beforeAvatarUpload (file) {
|
|
|
let isType = true;
|
|
|
if (this.type == 'video') {
|