refactor(数据源): 优化插件加载展示

This commit is contained in:
junjun 2024-08-05 15:26:09 +08:00
parent 97efaa7979
commit 6d2c1e9874

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
}
})
}