|
@@ -10,7 +10,7 @@ import { socketSend } from '~/utils/ws';
|
|
|
import { formatOffsetSec } from '~/utils/time';
|
|
|
|
|
|
let offsetTimer: NodeJS.Timeout
|
|
|
-let offsetTime: number
|
|
|
+let offsetTime = $ref<number>(0)
|
|
|
|
|
|
const emits = defineEmits<{
|
|
|
(event: 'update-info', info: Partial<type_dyaw_xlfw_zxhd_log>, isUpdate?: boolean): void;
|
|
@@ -100,6 +100,7 @@ defineExpose({
|
|
|
if (mode === 'video')
|
|
|
await rtcInstance.client!.publish(rtcInstance.localVideoTrack!);
|
|
|
currentChatStatus = CHAT_STATUS.CHATING
|
|
|
+ offsetTime = 0
|
|
|
offsetTimer = setInterval(() => {
|
|
|
offsetTime = (offsetTime as number + 1)
|
|
|
}, 1000)
|
|
@@ -331,6 +332,7 @@ async function handleAudioChatAccept() {
|
|
|
fullSendData
|
|
|
})
|
|
|
currentChatStatus = CHAT_STATUS.CHATING
|
|
|
+ offsetTime = 0
|
|
|
offsetTimer = setInterval(() => {
|
|
|
offsetTime = (offsetTime as number + 1)
|
|
|
}, 1000)
|