From f4cb3a8916974d9a169339a8f545e941a46d7c98 Mon Sep 17 00:00:00 2001 From: zhangxuelin <959231531@qq.com> Date: Thu, 12 Dec 2024 10:57:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E8=B5=9E=E7=96=91=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/AixPPTist/src/views/Screen/BaseView.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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) -})