From 9dece4dd2c92d454c3ebe1114e800db8a4a71e99 Mon Sep 17 00:00:00 2001 From: Yer <17633066053@163.com> Date: Tue, 9 May 2023 11:42:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E5=A4=8D=E8=A7=84?= =?UTF-8?q?=E6=A0=BC=E5=88=97=E8=A1=A8=E4=B8=AD=EF=BC=8C=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=96=B0=E5=A2=9E=E8=A7=84=E6=A0=BC=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=B8=8D=E5=9B=9E=E6=98=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/goods/goods-manage/spec.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manager/src/views/goods/goods-manage/spec.vue b/manager/src/views/goods/goods-manage/spec.vue index 73ba2c8b..5e14d7d8 100644 --- a/manager/src/views/goods/goods-manage/spec.vue +++ b/manager/src/views/goods/goods-manage/spec.vue @@ -269,11 +269,12 @@ export default { let localVal = v.specValue; this.form.specName = v.specName; this.form.id = v.id; - // this.$nextTick(() => { - // this.$set(this.form, 'specValue', localVal.split(",")) - // }) - this.form.specValue = localVal.split(",") + this.$nextTick(() => { + this.$set(this.form, 'specValue', v.specValue); + }) + if (localVal && localVal.indexOf("," > 0)) { + this.$set(this.form, 'specValue', localVal.split(",")); this.specValue = this.form.specValue; } else { this.specValue = [];