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

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

parent 1d308a8e
......@@ -67,12 +67,14 @@ export default {
},
methods: {
onCancel(type) {
if (type === 'cancle') {
this.$refs.imageCropper.getCropBlob((blob) => {
this.$emit('cancel', blob)
})
} else {
this.$emit('cancel', 'cancle')
if (this.visible) {
if (type === 'cancle') {
this.$refs.imageCropper.getCropBlob((blob) => {
this.$emit('cancel', blob)
})
} else {
this.$emit('cancel', 'cancle')
}
}
this.loading = false
},
......
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