This commit is contained in:
parent
3cfbd0da62
commit
fa5d541e2b
|
|
@ -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))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue