mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-17 08:25:52 +08:00
fix: 🐛 修复规格列表中,第一次新增规格点击编辑不回显问题
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user