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 @@