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 71bce12..8b5365a 100644 --- a/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue +++ b/src/renderer/src/AixPPTist/src/views/Editor/EditorHeader/index.vue @@ -14,8 +14,8 @@ mainMenuVisible = false }"> 导入 pptx 文件 - --> - 导出文件 + + 导出文件 --> 重置幻灯片 @@ -54,9 +54,9 @@
-