Merge pull request #11362 from dataease/pr@dev-v2@refactor_ds

refactor(数据源): 优化插件加载展示
This commit is contained in:
Junjun 2024-08-05 15:29:01 +08:00 committed by GitHub
commit e9ca0286e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,9 @@ const loadDsPlugin = data => {
}
const index = typeList.findIndex(ele => ele === node.catalog)
if (index !== -1) {
databaseList.value[index].push(node)
let copiedArr = JSON.parse(JSON.stringify(databaseList.value))
copiedArr[index].push(node)
databaseList.value = copiedArr
}
})
}