diff --git a/components/lib/splitter/Splitter.vue b/components/lib/splitter/Splitter.vue index f88214796..1144adf54 100644 --- a/components/lib/splitter/Splitter.vue +++ b/components/lib/splitter/Splitter.vue @@ -331,7 +331,9 @@ export default { } }, saveState() { - this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes)); + if(ObjectUtils.isArray(this.panelSizes)) { + this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes)); + } }, restoreState() { const storage = this.getStorage();