From c152a3d3eee6ff8b9c7cf73d9b46b0ff8c95449d Mon Sep 17 00:00:00 2001 From: zdg Date: Tue, 24 Dec 2024 11:24:53 +0800 Subject: [PATCH 1/4] =?UTF-8?q?aippt=E7=94=9F=E6=88=90-=E7=BC=A9=E7=95=A5?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/AixPPTist/src/api/chat.ts | 3 +- .../src/views/Editor/EditorHeader/index.vue | 8 +- src/renderer/src/utils/ppt/index.js | 87 +++++++++++++++++++ src/renderer/src/views/model/index.vue | 13 ++- .../views/teachingDesign/container/right.vue | 6 +- 5 files changed, 107 insertions(+), 10 deletions(-) create mode 100644 src/renderer/src/utils/ppt/index.js diff --git a/src/renderer/src/AixPPTist/src/api/chat.ts b/src/renderer/src/AixPPTist/src/api/chat.ts index 70574e2..9987c7d 100644 --- a/src/renderer/src/AixPPTist/src/api/chat.ts +++ b/src/renderer/src/AixPPTist/src/api/chat.ts @@ -14,7 +14,8 @@ export default () => { const courseId = classcourse?.id // 课堂id const timgroupid = classcourse?.timgroupid // 群组id const classcourseStore = useClasscourseStore() // 课堂信息-状态管理 - if (!ChatWs.ws) ChatWs.init() + // 上课状态才-初始化socket + if (!ChatWs.ws && !!courseId) ChatWs.init() // 开课消息 const startCourse = async() => { // await API_classcourse.updateClasscourse({ id: classcourse.id, status: 'open' }) diff --git a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue index 29d7ca5..8b5365a 100644 --- a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue +++ b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue @@ -3,7 +3,7 @@