首次加载图标更新

This commit is contained in:
yj 2024-10-17 09:35:45 +08:00
parent d12ef5c633
commit b01a0a2035
1 changed files with 7 additions and 0 deletions

View File

@ -355,6 +355,13 @@ const Meeting: React.FC = () => {
time: changeCurrentSeconds(),
});
}, 1000)
// 首次加载图标更新
const firstFooterList = [...footerList]
firstFooterList[0][0].title = state.enableMicr ? '静音' : '解除静音'
firstFooterList[0][0].active = !state.enableMicr
firstFooterList[0][1].title = state.enableCamera ? '关闭视频' : '开启视频'
firstFooterList[0][1].active = !state.enableCamera
setFooterList(firstFooterList)
setTimeout(async () => {
const setting = await JSON.parse(storage.getItem('setting') as string);
const stateInfo = await JSON.parse(storage.getItem('stateInfo') as string);