|
@@ -58,6 +58,7 @@ function close(err?: string) {
|
|
|
winMaxOrMin.value = false
|
|
winMaxOrMin.value = false
|
|
|
cancelAnimationFrame(conctrlAnimation.value)
|
|
cancelAnimationFrame(conctrlAnimation.value)
|
|
|
window.$electron.send('closeMqtt')
|
|
window.$electron.send('closeMqtt')
|
|
|
|
|
+ console.log('close mqtt')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 初始化rtc
|
|
// 初始化rtc
|
|
@@ -135,13 +136,7 @@ function sendAudio(blob: Blob) {
|
|
|
// 窗口事件
|
|
// 窗口事件
|
|
|
function titleEvent(type: string) {
|
|
function titleEvent(type: string) {
|
|
|
if (type === 'maxWin') winMaxOrMin.value = !winMaxOrMin.value
|
|
if (type === 'maxWin') winMaxOrMin.value = !winMaxOrMin.value
|
|
|
- if (type === 'closeWin') {
|
|
|
|
|
- if (winMaxOrMin.value) window.$electron?.send('maxWin', false)
|
|
|
|
|
- close()
|
|
|
|
|
- console.log('MQTT and RTC close')
|
|
|
|
|
- } else {
|
|
|
|
|
- window.$electron?.send(type, winMaxOrMin.value)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (type === 'closeWin') { close() } else { window.$electron?.send(type, winMaxOrMin.value) }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// mqtt
|
|
// mqtt
|