Commit 0b19436e by duanaijun

修改上传是否删除原图

parent 107ab6e7
......@@ -74,6 +74,13 @@ export default {
type: Boolean,
default: true,
},
//是否删除原图-------------
deletePic: {
type: Boolean,
default: true,
},
//------------------------
option: {
// 剪裁比例大小
type: Object,
......@@ -169,6 +176,15 @@ export default {
});
},
delImg() {
//--------是否删除原图-----------begin
if(!this.deletePic){
this.$emit('input', '');
this.$nextTick(() => {
if (this.$refs.input) this.$refs.input.value = '';
});
return;
}
//-------------------------------end
getDelImgToken({
params: {
fileNames: this.fileName,
......
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