This commit is contained in:
Vanessa 2023-10-24 10:42:04 +08:00
parent ae35acbb35
commit 621babd29d
9 changed files with 11 additions and 12 deletions

View file

@ -178,12 +178,12 @@ const saveUI = () => {
onlyData: false,
errorExit: false
});
}
};
export const unbindSaveUI = () => {
window.removeEventListener("beforeunload", saveUI);
window.removeEventListener("pagehide", saveUI);
}
};
export const initWindow = async (app: App) => {
/// #if !BROWSER