This commit is contained in:
yj 2024-08-13 16:11:30 +08:00
parent 3cfbd0da62
commit fa5d541e2b
1 changed files with 12 additions and 8 deletions

View File

@ -175,15 +175,19 @@ const App: React.FC = () => {
if (isState) { if (isState) {
setIsState(false) setIsState(false)
window.electron.onQuit(async () => { window.electron.onQuit(async () => {
if (storage.getItem('isTips') === 'true') { if (location.hash.indexOf('/login') === 1) {
const setting = JSON.parse(storage.getItem('setting') as string) window.electron.quit()
if (setting.closeSetting === 'hide') {
window.electron.setViewStatus(setting.closeSetting)
} else {
window.electron.quit()
}
} else { } else {
quitTipsRef.current.changeModal() if (storage.getItem('isTips') === 'true') {
const setting = JSON.parse(storage.getItem('setting') as string)
if (setting.closeSetting === 'hide') {
window.electron.setViewStatus(setting.closeSetting)
} else {
window.electron.quit()
}
} else {
quitTipsRef.current.changeModal()
}
} }
}) })
} }