折叠为子脑图与恢复
await mn.api('/notes/' + noteid + '/fold-into-sub-map', {
method: 'POST',
body: { confirm: true }
});
await mn.api('/notes/' + noteid + '/fold-into-sub-map', {
method: 'POST',
body: { undo: true, confirm: true }
});{
"TODO": "本接口的响应结构没有依据,待实测补入"
}卡片与摘录
将分支折叠为子脑图
把该卡的整个分支折成一张子脑图。带 undo 传 true 时恢复为普通分支。
该卡没有下层时返回 422 NO_CHILDREN。
POST
/
notes
/
{noteid}
/
fold-into-sub-map
折叠为子脑图与恢复
await mn.api('/notes/' + noteid + '/fold-into-sub-map', {
method: 'POST',
body: { confirm: true }
});
await mn.api('/notes/' + noteid + '/fold-into-sub-map', {
method: 'POST',
body: { undo: true, confirm: true }
});{
"TODO": "本接口的响应结构没有依据,待实测补入"
}