fix: 🐛 修复规格列表中,第一次新增规格点击编辑不回显问题
parent
7ded1c564e
commit
9dece4dd2c
|
@ -269,11 +269,12 @@ export default {
|
||||||
let localVal = v.specValue;
|
let localVal = v.specValue;
|
||||||
this.form.specName = v.specName;
|
this.form.specName = v.specName;
|
||||||
this.form.id = v.id;
|
this.form.id = v.id;
|
||||||
// this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// this.$set(this.form, 'specValue', localVal.split(","))
|
this.$set(this.form, 'specValue', v.specValue);
|
||||||
// })
|
})
|
||||||
this.form.specValue = localVal.split(",")
|
|
||||||
if (localVal && localVal.indexOf("," > 0)) {
|
if (localVal && localVal.indexOf("," > 0)) {
|
||||||
|
this.$set(this.form, 'specValue', localVal.split(","));
|
||||||
this.specValue = this.form.specValue;
|
this.specValue = this.form.specValue;
|
||||||
} else {
|
} else {
|
||||||
this.specValue = [];
|
this.specValue = [];
|
||||||
|
|
Loading…
Reference in New Issue