diff --git a/src/renderer/src/AixPPTist/src/api/watcher.ts b/src/renderer/src/AixPPTist/src/api/watcher.ts index b7ae2f8..4860a0e 100644 --- a/src/renderer/src/AixPPTist/src/api/watcher.ts +++ b/src/renderer/src/AixPPTist/src/api/watcher.ts @@ -2,7 +2,7 @@ * @description 公共监听器 */ -import { watch } from 'vue' +import { watch, render } from 'vue' import { PPTApi } from './index' import * as store from '../store' import { sessionStore } from '@/utils/store' // electron-store 状态管理 @@ -99,6 +99,7 @@ export default () => { } break case MsgEnum.HEADS.MSG_slideFlapping: // 幻灯片翻页 + render(null, document.body) //移除弹窗 emitter.emit('closegridPic') //如果有推图片窗口 就关闭 const slideIndex = content?.current || 0 const type = content?.animation // 上下动作 @@ -148,14 +149,4 @@ export default () => { window.close() // 关闭窗口 }, 1000) } - // setTimeout(async () => { - // emitter.emit('opengridPic',{arr:['https://prev.ysaix.com:7868/src/assets/images/homecard4.jpg']}) - // }, 3000) - - // setTimeout(async () => { - // emitter.emit('closegridPic') - // }, 6000) - // setTimeout(async () => { - // emitter.emit('opengridPic',{arr:['https://prev.ysaix.com:7868/src/assets/images/homecard4.jpg','https://prev.ysaix.com:7868/src/assets/images/homecard4.jpg']}) - // }, 9000) } \ No newline at end of file