From 8f98906502b07f7f396a46fe87a72172b202a148 Mon Sep 17 00:00:00 2001 From: hupeng Date: Wed, 27 May 2020 19:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=9B=BE=E6=96=87=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0watch=20=E4=BF=AE=E5=A4=8D=20=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=B7=B2=E7=BB=8F=E6=B7=BB=E5=8A=A0=E8=BF=98?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wechat/article/form.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/wechat/article/form.vue b/src/views/wechat/article/form.vue index 7770bfb..cd3221e 100644 --- a/src/views/wechat/article/form.vue +++ b/src/views/wechat/article/form.vue @@ -68,11 +68,6 @@ export default { } }, watch: { - 'form.imageArr': function(val) { - if (val) { - this.form.imageInput = val.join(',') - } - } }, methods: { cancel() { @@ -80,6 +75,12 @@ export default { }, doSubmit() { this.loading = true + if(this.form.imageArr.length > 0){ + this.form.imageInput = this.form.imageArr.join(',') + }else{ + this.form.imageInput = '' + } + if (this.isAdd) { this.doAdd() } else this.doEdit()