From bb486e2bd2d6fa5326973d450ea77f8d4b45e79f Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 25 Sep 2024 11:24:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E6=9D=90=E5=88=87=E6=8D=A2=20edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/choose-textbook/index.vue | 3 +- .../src/components/move-file/index.vue | 279 ++++++------------ src/renderer/src/hooks/useGetSubject.js | 3 - src/renderer/src/layout/components/Header.vue | 8 +- src/renderer/src/views/prepare/index.vue | 1 + 5 files changed, 92 insertions(+), 202 deletions(-) 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 @@