update songrequest settings

This commit is contained in:
2023-11-23 21:21:40 +08:00
parent 3f5002b0a5
commit a0858651d6
2 changed files with 22 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useAccount } from '@/api/account'
import DanmakuClient from '@/data/DanmakuClient'
import { onMounted, onUnmounted } from 'vue'
import { onActivated, onDeactivated, onMounted, onUnmounted } from 'vue'
import MusicRequest from '../open_live/MusicRequest.vue'
import { NAlert } from 'naive-ui'
@@ -9,9 +9,7 @@ const accountInfo = useAccount()
let client = new DanmakuClient(null)
onMounted(() => {
if(accountInfo.value?.eventFetcherOnline != true){
client.Start()
}
client.Start()
})
onUnmounted(() => {
client.Stop()