diff --git a/src/views/farm/task/index.vue b/src/views/farm/task/index.vue index fd70eda..5d308b2 100644 --- a/src/views/farm/task/index.vue +++ b/src/views/farm/task/index.vue @@ -315,9 +315,11 @@ export default { //图片转json let im = this.form.images; - if(im != null && typeof(im) != 'object'){ - let imgArr = im.split(",") - this.form.images = JSON.stringify(imgArr); + this.form.images = JSON.stringify(""); + if (im) { + //不为空 + let imgArr = im.split(",") + this.form.images = JSON.stringify(imgArr); } // 修改的提交