From 61de1da32d372991aa6d9bcb20e8d4b7d481bfb6 Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 9 May 2022 08:43:37 +0800 Subject: [PATCH] 29553 --- packages/jianping/AppPublicizeInformation/Add.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jianping/AppPublicizeInformation/Add.vue b/packages/jianping/AppPublicizeInformation/Add.vue index 2a2c9fcb..ae73f62e 100644 --- a/packages/jianping/AppPublicizeInformation/Add.vue +++ b/packages/jianping/AppPublicizeInformation/Add.vue @@ -148,7 +148,7 @@ export default { submit() { this.$refs.ruleForm.validate(v => { if (v) { - if(this.form.pictureUrlList.length) { + if(this.form.pictureUrlList && this.form.pictureUrlList.length) { this.form.pictureUrl = this.form.pictureUrlList[0].url } this.instance.post(`/app/apppublicityinfo/addOrUpdate`, this.form).then(res => { @@ -166,6 +166,7 @@ export default { params: {id} }).then(res => { if (res?.data) { + res.data.pictureUrlList = [] if(res.data.pictureUrl) { res.data.pictureUrlList = [{url: res.data.pictureUrl}] }