Commit 8e903576 authored by 刘怀志's avatar 刘怀志

67455 兽医管理-新增/编辑,证书上传一张照片后,再进行上传,点击裁剪图片的取消按钮后,第一张上传的图片也消失了

parent 1d308a8e
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
}, },
methods: { methods: {
onCancel(type) { onCancel(type) {
if (this.visible) {
if (type === 'cancle') { if (type === 'cancle') {
this.$refs.imageCropper.getCropBlob((blob) => { this.$refs.imageCropper.getCropBlob((blob) => {
this.$emit('cancel', blob) this.$emit('cancel', blob)
...@@ -74,6 +75,7 @@ export default { ...@@ -74,6 +75,7 @@ export default {
} else { } else {
this.$emit('cancel', 'cancle') this.$emit('cancel', 'cancle')
} }
}
this.loading = false this.loading = false
}, },
onConfirm() { onConfirm() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment