fix read danmaku

This commit is contained in:
2025-01-19 14:59:20 +08:00
parent 02e24a5783
commit 5e570531f1
5 changed files with 17 additions and 44 deletions

View File

@@ -84,7 +84,7 @@ const route = useRoute()
const message = useMessage()
const accountInfo = useAccount()
const notification = useNotification()
const client = useDanmakuClient()
const client = await useDanmakuClient().initClient()
const originUsers = ref<OpenLiveLotteryUserInfo[]>([])
const currentUsers = ref<OpenLiveLotteryUserInfo[]>([])

View File

@@ -113,7 +113,7 @@ const route = useRoute()
const accountInfo = useAccount()
const message = useMessage()
const notice = useNotification()
const client = useDanmakuClient()
const client = await useDanmakuClient().initClient()
const isWarnMessageAutoClose = useStorage('Queue.Settings.WarnMessageAutoClose', false)
const isReverse = useStorage('Queue.Settings.Reverse', false)

View File

@@ -74,7 +74,7 @@ type SpeechInfo = {
const accountInfo = useAccount()
const message = useMessage()
const route = useRoute()
const client = useDanmakuClient()
const client = await useDanmakuClient().initClient()
const settings = useStorage<SpeechSettings>('Setting.Speech', {
speechInfo: {
volume: 1,