修复菜品修改报错

This commit is contained in:
huangdeliang 2021-01-22 10:00:21 +08:00
parent f99f84ce07
commit 7a1aac82c9
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -477,7 +477,7 @@
const id = row.id || this.ids const id = row.id || this.ids
getDishes(id).then(response => { getDishes(id).then(response => {
this.form = response.data; this.form = response.data;
this.form.type = this.form.type.split(','); this.form.type = this.form.type ? this.form.type.split(',') : null;
this.form.igdList.forEach(obj => { this.form.igdList.forEach(obj => {
this.selIngIds.push(obj.id); this.selIngIds.push(obj.id);
this.selIngList.push({ this.selIngList.push({