Commit 9918ee89 authored by “yiyousong”'s avatar “yiyousong”

fix: 修复接入区县编辑保存的时候报错的问题

parent 436c1a46
...@@ -190,18 +190,20 @@ export default { ...@@ -190,18 +190,20 @@ export default {
// 编辑 // 编辑
onEdit(row) { onEdit(row) {
setTimeout(() => { setTimeout(() => {
if (row.tag) { this.form = row;
row.tag = row.tag.split(","); if (this.form.tag) {
this.form.tag = this.form.tag.split(",");
} else {
this.form.tag = [];
} }
if (row.bigPath) { if (this.form.bigPath) {
this.fileList = [ this.fileList = [
{ {
name: row.bigPath, name: this.form.bigPath,
url: row.bigPath, url: this.form.bigPath,
}, },
]; ];
} }
this.form = row;
}, 10); }, 10);
}, },
// 重置 // 重置
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment