This commit is contained in:
parent
3cfbd0da62
commit
fa5d541e2b
20
src/App.tsx
20
src/App.tsx
|
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue