this is the initial effect;
handleAvatarSuccess(res, file) {
//
this.imageUrl = res.data;
this.form.slideshowPicture = res.data;
debugger;
this.$refs.upImg.clearValidate();
},
<el-form-item label="" :label-width="formLabelWidth" prop="imageUrl" ref="upImg">
<el-upload class="avatar-uploader" v-model="imageUrl" :action=GLOBAUPIMGLURLslideshow :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
<img v-if="imageUrl" :src="GLOBALURL+imageUrl" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
</el-form-item>
this is my html fragment
shouldImg= (rule, value, callback) = > {
debugger;
if (!value) {
return callback(new Error(""));
}else{
callback();
}
};