This commit is contained in:
parent
3cfbd0da62
commit
fa5d541e2b
|
|
@ -175,6 +175,9 @@ const App: React.FC = () => {
|
|||
if (isState) {
|
||||
setIsState(false)
|
||||
window.electron.onQuit(async () => {
|
||||
if (location.hash.indexOf('/login') === 1) {
|
||||
window.electron.quit()
|
||||
} else {
|
||||
if (storage.getItem('isTips') === 'true') {
|
||||
const setting = JSON.parse(storage.getItem('setting') as string)
|
||||
if (setting.closeSetting === 'hide') {
|
||||
|
|
@ -185,6 +188,7 @@ const App: React.FC = () => {
|
|||
} else {
|
||||
quitTipsRef.current.changeModal()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
storage.setItem('stateInfo', JSON.stringify(state))
|
||||
|
|
|
|||
Loading…
Reference in New Issue