修复文档错误

This commit is contained in:
wanglin2
2023-01-11 18:01:56 +08:00
parent 7d3f08bed0
commit 4d82dfdf9e
2 changed files with 8 additions and 12 deletions

View File

@@ -170,13 +170,11 @@ import MindMap from "simple-mind-map";
const mindMap = new MindMap({
el: document.getElementById("mindMapContainer"),
data: {
"root": {
"data": {
"text": "root node",
},
"children": [],
"data": {
"text": "根节点"
},
},
"children": []
}
});
```

View File

@@ -145,12 +145,10 @@ import MindMap from "simple-mind-map";
const mindMap = new MindMap({
el: document.getElementById('mindMapContainer'),
data: {
"root": {
"data": {
"text": "根节点"
},
"children": []
}
"data": {
"text": "根节点"
},
"children": []
}
});
```