mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
fix data type
This commit is contained in:
@@ -105,7 +105,7 @@ export const useDanmakuClient = defineStore('DanmakuClient', () => {
|
||||
}
|
||||
break
|
||||
case 'on-danmaku':
|
||||
const danmaku = JSON.parse(data)
|
||||
const danmaku = typeof data === 'string' ? JSON.parse(data) : data
|
||||
switch (danmaku.cmd) {
|
||||
case 'LIVE_OPEN_PLATFORM_DM':
|
||||
danmakuClient.value.onDanmaku(danmaku)
|
||||
|
||||
Reference in New Issue
Block a user