Skip to content

Commit 418700d

Browse files
committed
fix: #18
1 parent b358bd4 commit 418700d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/ArrayView.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ export default {
103103
hideMyItem: {}
104104
};
105105
},
106+
watch: {
107+
parsedData: {
108+
handler(newValue, oldValue) {
109+
this.flowData = this.parsedData;
110+
}
111+
}
112+
},
106113
components: {
107114
"item-add-form": ItemAddForm
108115
},

src/JsonView.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,11 @@ export default {
9494
props: { parsedData: {} },
9595
data () {
9696
return {
97-
flowData: [],
97+
flowData: this.parsedData,
9898
toAddItem: false,
9999
hideMyBlock: {}
100100
};
101101
},
102-
103102
created () {
104103
this.flowData = this.parsedData;
105104
},

0 commit comments

Comments
 (0)