mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-06-11 18:02:29 +03:00
fix array with 0 or ''
This commit is contained in:
@@ -51,7 +51,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
this.value.push(vals[index]);
|
||||
|
||||
if (vals[index + 1]) {
|
||||
if (this.value.length < vals.length) {
|
||||
this.setValue(vals, index + 1);
|
||||
}
|
||||
}, 0);
|
||||
@@ -94,7 +94,6 @@ export default {
|
||||
innerHTML: '['
|
||||
}
|
||||
}))
|
||||
|
||||
this.ordered.forEach((value, key) => {
|
||||
elements.push(h(JsonBox, {
|
||||
key,
|
||||
|
||||
Reference in New Issue
Block a user