This commit is contained in:
focp212@naver.com
2025-11-20 09:39:18 +09:00
parent 72e57a9250
commit bd0fd3bfe2
2 changed files with 3 additions and 3 deletions

View File

@@ -45,6 +45,6 @@ declare global {
};
saveToken: (token: LoginResponse) => void;
alarmLink: (options: AlarmLinkOptions) => void;
onPressBackKey: () => void;
pressBackKey: () => void;
}
}

View File

@@ -402,7 +402,7 @@ export const SubLayout = () => {
}
};
const onPressBackKey = () => {
const pressBackKey = () => {
let pathname = location.pathname;
console.log('pathname = [' + pathname + ']');
if(menuOn){
@@ -419,7 +419,7 @@ export const SubLayout = () => {
window.saveToken = saveToken;
window.alarmLink = alarmLink;
window.onPressBackKey = onPressBackKey;
window.pressBackKey = pressBackKey;
useEffect(() => {
handleLogin();