This commit is contained in:
yj 2024-08-15 11:31:39 +08:00
parent e7dccbba69
commit d1cdd99ae1
1 changed files with 5 additions and 1 deletions

View File

@ -153,6 +153,11 @@ const App: React.FC = () => {
}
storage.setItem('stateInfo', JSON.stringify(state))
}, [state])
useEffect(() => {
if (location.href.indexOf('/login') === 1) {
onStop()
}
}, [navigate])
const handleResize = (): void => {
setWindowSize({
width: window.innerWidth,
@ -193,7 +198,6 @@ const App: React.FC = () => {
const toSrc = (path: string): void => {
switch (path) {
case '/login':
onStop()
window.electron.setMainWindowSize({
width: 752,
height: 520,