edit bookld

This commit is contained in:
lyc 2025-02-19 16:18:36 +08:00
parent e27f7e0018
commit 870ffb167a
1 changed files with 8 additions and 0 deletions

View File

@ -195,6 +195,14 @@ const handleNodeClick = (data) => {
},
node: nodeData
}
/**
*
* 章节数据里面的rootid 为bookId
* 因为部分数据源的rootid 有问题 这里需要重复赋值一下
*/
node.rootid = curBook.data.id
// :electron-store
let defaultExpandedKeys = parentNode ? [parentNode.id] : [nodeData.id]
sessionStore.set('subject.defaultExpandedKeys', defaultExpandedKeys)