Compare commits
No commits in common. "64d2dbcabb15493a815df32c4989489cae8288ba" and "69db6bd8b1d93b225c732ba02829f292c1e94bc3" have entirely different histories.
64d2dbcabb
...
69db6bd8b1
|
@ -36,7 +36,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 点赞组件 -->
|
<!-- 点赞组件 -->
|
||||||
<div style="z-index: 999;position: absolute;top:10px">
|
<div style="z-index: 999;position: absolute;top:10px">
|
||||||
<upvote-vue ref="upvoteRef" type="2"></upvote-vue>
|
<upvote-vue ref="upvoteRef" :test='true' type="2"></upvote-vue>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="tools-right" :class="{ 'visible': rightToolsVisible }"
|
class="tools-right" :class="{ 'visible': rightToolsVisible }"
|
||||||
|
@ -73,8 +73,6 @@ import SlideThumbnails from './SlideThumbnails.vue'
|
||||||
import WritingBoardTool from './WritingBoardTool.vue'
|
import WritingBoardTool from './WritingBoardTool.vue'
|
||||||
import CountdownTimer from './CountdownTimer.vue'
|
import CountdownTimer from './CountdownTimer.vue'
|
||||||
import upvoteVue from '@/views/tool/components/upvote.vue' // 点赞-子组件
|
import upvoteVue from '@/views/tool/components/upvote.vue' // 点赞-子组件
|
||||||
import emitter from '@/utils/mitt';
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
changeViewMode: (mode: 'base' | 'presenter') => void
|
changeViewMode: (mode: 'base' | 'presenter') => void
|
||||||
}>()
|
}>()
|
||||||
|
@ -193,11 +191,13 @@ 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)
|
||||||
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue