diff --git a/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue b/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue index 7a564c9..d4cd388 100644 --- a/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue +++ b/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue @@ -36,7 +36,7 @@
- +
void }>() @@ -191,13 +193,11 @@ const contextmenus = (): ContextmenuItem[] => { }, ] } +// 打开点赞或者疑问 1点赞 2疑问 +emitter.on('upvoteTrigger', (type) => { + upvoteRef.value?.trigger(type) +}); -watchEffect(() => { - const likeCont = screenStore.like // 点赞 - const doubtCount = screenStore.doubt // 疑问 - if (likeCont > 0) upvoteRef.value?.trigger?.(1) - if (doubtCount > 0) upvoteRef.value?.trigger?.(2) -})