Merge branch 'main' of http://27.128.240.72:3000/zhuhao/AIx_Smarttalk_WS into zdg_dev
This commit is contained in:
commit
94fa1a2457
|
@ -23,7 +23,6 @@ export default () => {
|
||||||
const resource = sessionStore.get('curr.resource') // apt 资源
|
const resource = sessionStore.get('curr.resource') // apt 资源
|
||||||
const smarttalk = sessionStore.get('curr.smarttalk') // 备课资源
|
const smarttalk = sessionStore.get('curr.smarttalk') // 备课资源
|
||||||
const execPlay = useExecPlay() // 播放控制
|
const execPlay = useExecPlay() // 播放控制
|
||||||
|
|
||||||
// 监听幻灯片内容变化
|
// 监听幻灯片内容变化
|
||||||
watch(() => slidesStore.slides, (newVal, oldVal) => {
|
watch(() => slidesStore.slides, (newVal, oldVal) => {
|
||||||
PPTApi.updateSlides(newVal, oldVal) // 更新幻灯片内容
|
PPTApi.updateSlides(newVal, oldVal) // 更新幻灯片内容
|
||||||
|
@ -40,7 +39,14 @@ export default () => {
|
||||||
if (!!Classcourse.id) return // 上课状态,不更新右侧作业列表
|
if (!!Classcourse.id) return // 上课状态,不更新右侧作业列表
|
||||||
PPTApi.updateWorkList() // 更新作业列表
|
PPTApi.updateWorkList() // 更新作业列表
|
||||||
})
|
})
|
||||||
|
// 监听幻灯片下画布尺寸比例变化
|
||||||
|
watch(() => slidesStore.viewportRatio, (newVal, oldVal) => {
|
||||||
|
const width = slidesStore.viewportSize
|
||||||
|
const widthandration={width, ratio:newVal}
|
||||||
|
const data = { id: resource.id, parentContent: JSON.stringify(widthandration)}
|
||||||
|
PPTApi.updateSlide(data)
|
||||||
|
})
|
||||||
|
|
||||||
// 消息监听ws
|
// 消息监听ws
|
||||||
// console.log('监听器已开启', ChatWs)
|
// console.log('监听器已开启', ChatWs)
|
||||||
if (!!ChatWs.ws) {
|
if (!!ChatWs.ws) {
|
||||||
|
|
Loading…
Reference in New Issue