From 0b4019957f6f936230cb28f02724ac0e248395de Mon Sep 17 00:00:00 2001 From: lyc Date: Wed, 23 Oct 2024 10:43:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4ppt=E4=B8=8A=E8=AF=BE=20?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/components/homework.vue | 7 ++++++- src/renderer/src/views/tool/components/side.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/views/tool/components/homework.vue b/src/renderer/src/views/tool/components/homework.vue index cdd303a..720a905 100644 --- a/src/renderer/src/views/tool/components/homework.vue +++ b/src/renderer/src/views/tool/components/homework.vue @@ -110,6 +110,10 @@ const curNode = reactive({ data: {} }) +const props = defineProps(['curNode']) + + + const sendHomework = (row,type) => { if(type == 'item'){ // 布置推送单个作业 @@ -222,7 +226,8 @@ onMounted(async () => { entpcourseid.value = route.query.entpcourseid lesson.value = route.query.label // 当前节点 mounted 的时候从缓存里拿 - curNode.data = sessionStore.get('subject.curNode') + // curNode.data = sessionStore.get('subject.curNode') + curNode.data = props.curNode getHomework() getResource() }) diff --git a/src/renderer/src/views/tool/components/side.vue b/src/renderer/src/views/tool/components/side.vue index c577a13..1cb278b 100644 --- a/src/renderer/src/views/tool/components/side.vue +++ b/src/renderer/src/views/tool/components/side.vue @@ -25,7 +25,7 @@
- + {{activeObj}}
@@ -35,6 +35,7 @@