会议关闭优化

This commit is contained in:
yj 2024-10-17 14:10:42 +08:00
parent 58facc62ea
commit 2389c7c48a
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ const Operation: React.FC = () => {
key: 'quit',
title: '关闭',
onClick: (key: OperationKeyType) => {
window.electron.setViewStatus(key)
if (location.hash.indexOf('/meeting') === -1) {
window.electron.setViewStatus(key)
} else {
window.electron.quit(false)
}
},
show: true,
},])