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,6 +175,9 @@ const App: React.FC = () => {
if (isState) { if (isState) {
setIsState(false) setIsState(false)
window.electron.onQuit(async () => { window.electron.onQuit(async () => {
if (location.hash.indexOf('/login') === 1) {
window.electron.quit()
} else {
if (storage.getItem('isTips') === 'true') { if (storage.getItem('isTips') === 'true') {
const setting = JSON.parse(storage.getItem('setting') as string) const setting = JSON.parse(storage.getItem('setting') as string)
if (setting.closeSetting === 'hide') { if (setting.closeSetting === 'hide') {
@ -185,6 +188,7 @@ const App: React.FC = () => {
} else { } else {
quitTipsRef.current.changeModal() quitTipsRef.current.changeModal()
} }
}
}) })
} }
storage.setItem('stateInfo', JSON.stringify(state)) storage.setItem('stateInfo', JSON.stringify(state))