Feat:复制知犀数据时,概要数据创建为数组形式
This commit is contained in:
parent
d641b7e2ef
commit
513a1c342c
@ -48,9 +48,11 @@ const handleZHIXI = async data => {
|
|||||||
item.children.forEach(item2 => {
|
item.children.forEach(item2 => {
|
||||||
// 概要
|
// 概要
|
||||||
if (item2.data.type === 'generalize') {
|
if (item2.data.type === 'generalize') {
|
||||||
newRoot.data.generalization = {
|
newRoot.data.generalization = [
|
||||||
text: item2.data.text
|
{
|
||||||
}
|
text: item2.data.text
|
||||||
|
}
|
||||||
|
]
|
||||||
} else {
|
} else {
|
||||||
children.push(item2)
|
children.push(item2)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user