diff --git a/src/renderer/src/components/choose-textbook/index.vue b/src/renderer/src/components/choose-textbook/index.vue index aa50586..007bcf1 100644 --- a/src/renderer/src/components/choose-textbook/index.vue +++ b/src/renderer/src/components/choose-textbook/index.vue @@ -77,12 +77,11 @@ const changeBook = (data) => { curBook.data = data sessionStore.set('subject.curBook', data) treeData.value = useSubject.getTreeData(data.id) - + sessionStore.set('subject.subjectTree', useSubject.getTreeData(data.id)) //切换教材后默认展开第一个并选中 nextTick(() =>{ defaultExpandedKeys.value = [treeData.value[0].id] curNode.data = getLastLevelData(treeData.value)[0] - handleNodeClick(curNode.data) }) // 延迟关闭 视觉上选中 diff --git a/src/renderer/src/components/move-file/index.vue b/src/renderer/src/components/move-file/index.vue index 6689e4a..a792459 100644 --- a/src/renderer/src/components/move-file/index.vue +++ b/src/renderer/src/components/move-file/index.vue @@ -1,5 +1,5 @@