添加一个退出桌面霸屏页面的功能。

This commit is contained in:
2023-03-22 17:07:33 +08:00
parent 0afa218810
commit a03da1bba9
8 changed files with 67 additions and 13 deletions

View File

@@ -43,4 +43,9 @@ function saveStaffInfo( stuff: StaffInfo ): void
window.localStorage.setItem( STUFF_ITEM, json );
};
export { loadStaffInfo, saveStaffInfo };
function cleanStaffInfo(): void
{
window.localStorage.removeItem( STUFF_ITEM );
}
export { loadStaffInfo, saveStaffInfo, cleanStaffInfo };