mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-05-09 18:48:05 +08:00
fix: maximum call stack size exceeded (#234)
This commit is contained in:
parent
1bf4b0eee1
commit
974477cb49
@ -244,7 +244,11 @@ const useTabStore = defineStore('tab', {
|
||||
if (!!!reset && typeof value === 'object') {
|
||||
if (value instanceof Array) {
|
||||
tabData.value = tabData.value || []
|
||||
tabData.value.push(...value)
|
||||
// direct deconstruction leads to 'Maximum call stack size exceeded'?
|
||||
// tabData.value.push(...value)
|
||||
for (let i = 0; i < value.length; i++) {
|
||||
tabData.value.push(value[i])
|
||||
}
|
||||
} else {
|
||||
tabData.value = assign(value, tabData.value || {})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user