This commit is contained in:
zdg 2024-12-18 16:00:31 +08:00
parent 6fa0aa6e5f
commit 38a50d18bf
1 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import ChatWs from '@/plugins/socket' // 聊天socket
import Classcourse from './classcourse' // 课程相关
import msgUtils from '@/plugins/modal' // 消息工具
import { Homework } from './index' // api-作业相关
import emitter from '@/utils/mitt' //mitt 事件总线
// import emitter from '@/utils/mitt' //mitt 事件总线
import useExecPlay from '../views/Screen/hooks/useExecPlay' // 播放控制
import hooksUpvote from './upvote' // 点赞-工具
@ -111,11 +111,9 @@ export default () => {
close()
break
case MsgEnum.HEADS.MSG_dz: // 点赞
// emitter.emit('upvoteTrigger', 1)
hooksUpvote.trigger(1)
break
case MsgEnum.HEADS.MSG_yh: // 疑惑
// emitter.emit('upvoteTrigger', 2)
hooksUpvote.trigger(2)
break
case MsgEnum.HEADS.MSG_0010: // 备用