zdg_dev #131

Merged
zhengdegang merged 5 commits from zdg_dev into main 2024-12-13 13:18:11 +08:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit e8ecc27441 - Show all commits

View File

@ -7,6 +7,7 @@ import { sessionStore } from '@/utils/store' // electron-store 状态管理
import * as useStore from '../store' // pptist-状态管理
import ChatWs from '@/plugins/socket' // 聊天socket
import msgUtils from '@/plugins/modal' // 消息工具
import * as Fullscreen from '../utils/fullscreen' // 全屏
const slidesStore = useStore.useSlidesStore() // 幻灯片-状态管理
const screenStore = useStore.useScreenStore() // 全屏-状态管理
@ -27,7 +28,9 @@ export class Classcourse {
load() {
console.log('classcourse-load', classcourse)
// 打开全屏
screenStore.setScreening(!!classcourse)
const isCourse = !!classcourse
if (isCourse) Fullscreen.enterFullscreen()
screenStore.setScreening(isCourse)
// 如果课堂信息有值则连接socket
if (!!classcourse) {
// 连接socket