|
@@ -57,6 +57,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async clearImg() {
|
|
async clearImg() {
|
|
|
|
|
+ if(!this.value.id){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
await removeFile({ fileId: this.value.id });
|
|
await removeFile({ fileId: this.value.id });
|
|
|
this.$emit('input', {});
|
|
this.$emit('input', {});
|
|
|
this.$refs.uploadRef.clearFiles();
|
|
this.$refs.uploadRef.clearFiles();
|
|
@@ -81,6 +84,7 @@ export default {
|
|
|
|
|
|
|
|
img {
|
|
img {
|
|
|
max-width: 100%;
|
|
max-width: 100%;
|
|
|
|
|
+ max-height: 100%;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|