优化快速退出

This commit is contained in:
youngq 2024-09-27 15:35:48 +08:00
parent 727e2469fc
commit 088b4e01aa
1 changed files with 7 additions and 5 deletions

View File

@ -998,12 +998,14 @@ const Meeting: React.FC = () => {
}
// 全员观看
const getShowUser = async (): Promise<void> => {
if (location.href.indexOf('/meeting') !== -1) {
await GetShowUser(state.channelId).then(async (res) => {
if (res.code === 200 && res.data) {
renderVideo(res.data)
}
})
}
}
// 加入房间时间
const changeCurrentSeconds = (): string => {
const duration = dayjs.duration(currentSeconds, 'seconds');