diff --git a/src/App.tsx b/src/App.tsx index 3ce2ba4..905cb59 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -175,15 +175,19 @@ const App: React.FC = () => { if (isState) { setIsState(false) window.electron.onQuit(async () => { - 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() - } + if (location.hash.indexOf('/login') === 1) { + window.electron.quit() } 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() + } } }) }