fix: no voice in speech page; custom personal page redirect notworking. feat: sync sroll bar between question display page an obs component

This commit is contained in:
2024-11-23 18:46:37 +08:00
parent 14267bab3a
commit 47ade4a965
33 changed files with 838 additions and 1119 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import { useAccount } from '@/api/account';
import { MasterRTCClient, SlaveRTCClient } from '@/data/RTCClient';
import { BaseRTCClient, MasterRTCClient, SlaveRTCClient } from '@/data/RTCClient';
import { useDanmakuClient } from '@/store/useDanmakuClient';
import { useWebRTC } from '@/store/useRTC';
import { NButton, NInput, NSpin } from 'naive-ui';
@@ -19,11 +19,11 @@ const isMaster = computed(() => {
const dc = useDanmakuClient()
const customCss = ref('')
let rtc: Ref<MasterRTCClient | SlaveRTCClient | undefined> = ref()
let rtc= useWebRTC()
const danmujiRef = ref()
function mount() {
rtc.value = useWebRTC().Init(isMaster.value ? 'master' : 'slave')
async function mount() {
rtc.Init(isMaster.value ? 'master' : 'slave')
dc.initClient()
}
</script>