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