diff --git a/src/renderer/src/AixPPTist/src/api/classcourse.ts b/src/renderer/src/AixPPTist/src/api/classcourse.ts index da4a566..bad9c67 100644 --- a/src/renderer/src/AixPPTist/src/api/classcourse.ts +++ b/src/renderer/src/AixPPTist/src/api/classcourse.ts @@ -8,6 +8,7 @@ import * as useStore from '../store' // pptist-状态管理 import ChatWs from '@/plugins/socket' // 聊天socket import msgUtils from '@/plugins/modal' // 消息工具 +const slidesStore = store.useSlidesStore() // 幻灯片-状态管理 const screenStore = useStore.useScreenStore() // 全屏-状态管理 const classcourseStore = useStore.useClasscourseStore() // 课堂信息-状态管理 const classcourse = sessionStore.get('curr.classcourse') // 课堂信息 @@ -32,10 +33,13 @@ export class Classcourse { // 连接socket if (!ChatWs.ws) ChatWs.init() ChatWs.id = classcourse.timgroupid // 群组id - console.log('ws- ', classcourse) this.classcourse = classcourse // 课堂信息 this.id = classcourse.id // 课堂id - classcourseStore.setClasscourse(classcourse) // 课堂信息-状态管理 + // 如果课堂信息有paging,则更新当前页码 + const isPaging = !!classcourse.paging||classcourse.paging==0 + if (isPaging) slidesStore.updateSlideIndex(classcourse.paging) + // 课堂信息-状态管理 + classcourseStore.setClasscourse(classcourse) // 待上课提示 if (!classcourse.status) { this.msgObj = { diff --git a/src/renderer/src/plugins/imChat/msgEnum.js b/src/renderer/src/plugins/imChat/msgEnum.js index e921ff6..4b1d56b 100644 --- a/src/renderer/src/plugins/imChat/msgEnum.js +++ b/src/renderer/src/plugins/imChat/msgEnum.js @@ -142,4 +142,6 @@ export class MsgEnum { MSG_0034: 0x0022, MSG_0035: 0x0023, } -} \ No newline at end of file +} + +export default MsgEnum; \ No newline at end of file diff --git a/src/renderer/src/views/classManage/reserv-item-apt.vue b/src/renderer/src/views/classManage/reserv-item-apt.vue index 18caf2a..67fb1ec 100644 --- a/src/renderer/src/views/classManage/reserv-item-apt.vue +++ b/src/renderer/src/views/classManage/reserv-item-apt.vue @@ -14,8 +14,8 @@ 上课(APP)