From a9019f595e7243b201a9e14e13338f284e6c395a Mon Sep 17 00:00:00 2001 From: ddiu8081 Date: Sat, 15 Oct 2022 23:41:52 +0800 Subject: [PATCH] feat: hide lottery danmu by default --- src/App.vue | 1 + src/components/MsgTime.vue | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index b6fae46..a008759 100644 --- a/src/App.vue +++ b/src/App.vue @@ -74,6 +74,7 @@ onMounted(async () => { liveStatus.value.isLive = false }, onIncomeDanmu: (msg) => { + if (msg.body.lottery) return allList.value.push(msg) danmuList.value.push(msg) }, diff --git a/src/components/MsgTime.vue b/src/components/MsgTime.vue index c352443..6a45fa1 100644 --- a/src/components/MsgTime.vue +++ b/src/components/MsgTime.vue @@ -12,4 +12,3 @@ const { timestamp } = defineProps<{ {{ dayjs(timestamp).format('HH:mm:ss') }} - \ No newline at end of file