fix:修改rootid;

This commit is contained in:
小杨 2025-02-19 16:25:22 +08:00
parent 0af53f82f0
commit fd43dde733
1 changed files with 6 additions and 0 deletions

View File

@ -195,6 +195,12 @@ 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)