From 31de0da3c589e64ea0d21cbcb5757724f7bc7439 Mon Sep 17 00:00:00 2001 From: zdg Date: Thu, 12 Dec 2024 17:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/AixPPTist/src/api/classcourse.ts | 2 +- src/renderer/src/AixPPTist/src/api/types.ts | 2 ++ src/renderer/src/plugins/imChat/msgEnum.js | 4 ++-- src/renderer/src/views/classTask/teachClassTask.vue | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/api/classcourse.ts b/src/renderer/src/AixPPTist/src/api/classcourse.ts index bad9c67..30e65e8 100644 --- a/src/renderer/src/AixPPTist/src/api/classcourse.ts +++ b/src/renderer/src/AixPPTist/src/api/classcourse.ts @@ -8,7 +8,7 @@ import * as useStore from '../store' // pptist-状态管理 import ChatWs from '@/plugins/socket' // 聊天socket import msgUtils from '@/plugins/modal' // 消息工具 -const slidesStore = store.useSlidesStore() // 幻灯片-状态管理 +const slidesStore = useStore.useSlidesStore() // 幻灯片-状态管理 const screenStore = useStore.useScreenStore() // 全屏-状态管理 const classcourseStore = useStore.useClasscourseStore() // 课堂信息-状态管理 const classcourse = sessionStore.get('curr.classcourse') // 课堂信息 diff --git a/src/renderer/src/AixPPTist/src/api/types.ts b/src/renderer/src/AixPPTist/src/api/types.ts index 39ec3be..e762748 100644 --- a/src/renderer/src/AixPPTist/src/api/types.ts +++ b/src/renderer/src/AixPPTist/src/api/types.ts @@ -106,6 +106,8 @@ export class MsgEnum { MSG_anmationclick : 'anmationclick', /** @desc: 群组创建成功 */ MSG_classcourseopen : 'classcourseopen', + /** @desc: 学生提交作业 */ + MSG_finishHomework : 'finishHomework', /** @desc: 学生的测练结果反馈 */ MSG_classquizfeedback : 'classquizfeedback', /** @desc: 老师端:接收到学生反馈消息-课堂测练中的其他任务 */ diff --git a/src/renderer/src/plugins/imChat/msgEnum.js b/src/renderer/src/plugins/imChat/msgEnum.js index 4c728d9..803aea9 100644 --- a/src/renderer/src/plugins/imChat/msgEnum.js +++ b/src/renderer/src/plugins/imChat/msgEnum.js @@ -80,10 +80,10 @@ export class MsgEnum { MSG_anmationclick : 'anmationclick', /** @desc: 群组创建成功 */ MSG_classcourseopen : 'classcourseopen', - /** @desc: 学生的测练结果反馈 */ - MSG_classquizfeedback : 'classquizfeedback', /** @desc: 学生提交作业 */ MSG_finishHomework : 'finishHomework', + /** @desc: 学生的测练结果反馈 */ + MSG_classquizfeedback : 'classquizfeedback', /** @desc: 老师端:接收到学生反馈消息-课堂测练中的其他任务 */ MSG_classtaskfeedback : 'classtaskfeedback', /** @desc: 老师端:学生反馈的消息,具体要看其中的feedbackkey,类别较繁杂 */ diff --git a/src/renderer/src/views/classTask/teachClassTask.vue b/src/renderer/src/views/classTask/teachClassTask.vue index 2ce9561..8d0db52 100644 --- a/src/renderer/src/views/classTask/teachClassTask.vue +++ b/src/renderer/src/views/classTask/teachClassTask.vue @@ -714,6 +714,7 @@ const closeDialog = () => { // im监听消息回调 const msgHandle = (msg) => { + console.log('socket消息回调', msg) if (typeof msg === 'object'){ const { head, content, ...other } = msg switch(head) {