|
@@ -10,7 +10,7 @@
|
|
:file-list="imgList"
|
|
:file-list="imgList"
|
|
:on-success="handleAvatarSuccess"
|
|
:on-success="handleAvatarSuccess"
|
|
:disabled="limit <= value.length"
|
|
:disabled="limit <= value.length"
|
|
- >
|
|
|
|
|
|
+ >{{ newUrl }}
|
|
<i slot="default" class="el-icon-plus" />
|
|
<i slot="default" class="el-icon-plus" />
|
|
<div slot="file" slot-scope="{ file }">
|
|
<div slot="file" slot-scope="{ file }">
|
|
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
|
|
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
|
|
@@ -112,7 +112,9 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
- beforeAvatarUpload(file) {},
|
|
|
|
|
|
+ beforeAvatarUpload(file) {
|
|
|
|
+ console.log();
|
|
|
|
+ },
|
|
handleAvatarSuccess(res, file, fileList) {
|
|
handleAvatarSuccess(res, file, fileList) {
|
|
if (file.response.code !== 200) {
|
|
if (file.response.code !== 200) {
|
|
this.$refs.upload.clearFiles();
|
|
this.$refs.upload.clearFiles();
|