mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
Feat:复制知犀数据时,概要数据创建为数组形式
This commit is contained in:
@@ -48,9 +48,11 @@ const handleZHIXI = async data => {
|
||||
item.children.forEach(item2 => {
|
||||
// 概要
|
||||
if (item2.data.type === 'generalize') {
|
||||
newRoot.data.generalization = {
|
||||
text: item2.data.text
|
||||
}
|
||||
newRoot.data.generalization = [
|
||||
{
|
||||
text: item2.data.text
|
||||
}
|
||||
]
|
||||
} else {
|
||||
children.push(item2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user