mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
25 lines
564 B
Vue
25 lines
564 B
Vue
<script setup lang="ts">
|
|
import { useAccount } from '@/api/account'
|
|
import { useDanmakuClient } from '@/store/useDanmakuClient'
|
|
import { NAlert } from 'naive-ui'
|
|
import OpenLottery from '../open_live/OpenLottery.vue'
|
|
|
|
const accountInfo = useAccount()
|
|
const client = await useDanmakuClient().initOpenlive()
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<NAlert
|
|
v-if="accountInfo?.isBiliVerified != true"
|
|
type="info"
|
|
>
|
|
尚未进行Bilibili认证
|
|
</NAlert>
|
|
<OpenLottery
|
|
v-else
|
|
:room-info="client.authInfo!"
|
|
:code="accountInfo?.biliAuthCode"
|
|
/>
|
|
</template>
|