Vanessa 2022-06-11 11:58:53 +08:00
parent c03fba9ff7
commit f0f8ab895f

View File

@ -411,6 +411,7 @@
} }
} }
const exitSiYuan = () => { const exitSiYuan = () => {
try {
fetch('/api/system/exit', { fetch('/api/system/exit', {
method: 'POST', method: 'POST',
body: JSON.stringify({force: false}), body: JSON.stringify({force: false}),
@ -436,7 +437,12 @@
} else { } else {
exitApp() exitApp()
} }
}).catch(() =>{
exitApp()
}) })
} catch (e) {
exitApp()
}
} }
const inputElement = document.getElementById('authCode') const inputElement = document.getElementById('authCode')