This commit is contained in:
Vanessa 2023-04-09 17:29:19 +08:00
parent aa5f5ddc5f
commit 35853cfedb
5 changed files with 36 additions and 20 deletions

View file

@ -15,15 +15,11 @@ export const onWindowsMsg = (ipcData: IWebSocketData) => {
closeTab(ipcData);
break;
case "lockscreen":
if (isWindow()) {
window.location.href = `/check-auth?url=${window.location.href}`;
} else {
exportLayout(false, () => {
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = `/check-auth?url=${window.location.href}`;
});
}, false, false);
}
exportLayout(false, () => {
fetchPost("/api/system/logoutAuth", {}, () => {
window.location.href = `/check-auth?url=${window.location.href}`;
});
}, false, false);
break;
}
};