From d542064ee35b8f508dbb93dbb0c5a1b738112b3f Mon Sep 17 00:00:00 2001 From: zdg Date: Wed, 4 Dec 2024 17:08:51 +0800 Subject: [PATCH] =?UTF-8?q?ppt=E7=94=9F=E6=88=90=E8=AF=BE=E5=A0=82?= =?UTF-8?q?=E5=A4=87=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/teachingDesign/container/right.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/views/teachingDesign/container/right.vue b/src/renderer/src/views/teachingDesign/container/right.vue index e94a7c2..6fae50c 100644 --- a/src/renderer/src/views/teachingDesign/container/right.vue +++ b/src/renderer/src/views/teachingDesign/container/right.vue @@ -210,13 +210,14 @@ emitter.on('changeResult', (item) => { const HTTP_SERVER_API = (type, params = {}) => { switch (type) { case 'addSmarttalk': { // 获取课程 + const node = courseObj.node || {} const def = { fileId: '', // 文件id - Entpcoursefile 对应id fileFlag: 'aptist', - fileShowName: courseObj.coursetitle + '.aptist', - textbookId: courseObj.textbookId, - levelFirstId: courseObj.levelFirstId, - levelSecondId: courseObj.levelSecondId, + fileShowName: node.itemtitle + '.aptist', + textbookId: node.rootid, + levelFirstId: node.parentid||node.id, + levelSecondId: node.parentid && node.id, fileSource: '个人', fileRoot: '备课' } @@ -314,6 +315,7 @@ const toRousrceUrl = async(o) => { const curNode = reactive({}) onMounted(() => { let data = sessionStore.get('subject.curNode') + console.log('data', sessionStore) Object.assign(curNode, data); courseObj.node = data