Skip to content

Commit fdda2bd

Browse files
committed
fix: fix update value by setData bug
1 parent f5ad8b5 commit fdda2bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
}
116116
const fieldName = field.name;
117117
118-
const fieldValue = getChild(this.data, fieldName.split('.'));
118+
const fieldValue = getChild(this.value, fieldName.split('.'));
119119
if (!field.value) {
120120
field.value = fieldValue;
121121
}
@@ -343,7 +343,7 @@
343343
/**
344344
* Reset the value of all elements of the parent form.
345345
*/
346-
reset(e) {
346+
reset() {
347347
for (const key in this.data) {
348348
const ns = key.split('.');
349349
const n = ns.pop();

0 commit comments

Comments
 (0)