Compare commits

..

No commits in common. "436bdfe7c8fe40142e1094a675e5a9a05ea4a87f" and "55efc7f3e15e16821add82c81ab24043a79f69a8" have entirely different histories.

1 changed files with 2 additions and 8 deletions

View File

@ -23,6 +23,7 @@ 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) // 更新幻灯片内容
@ -38,13 +39,6 @@ export default () => {
watch(() => slidesStore.slideIndex, (newVal, oldVal) => { watch(() => slidesStore.slideIndex, (newVal, oldVal) => {
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)