diff --git a/components/lib/splitter/Splitter.vue b/components/lib/splitter/Splitter.vue index f882147967..1144adf54c 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();