mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-03 17:06:36 +08:00
feat(frontend): wire pages to shadcn bridge and modular helpers
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { clearSession } from "@/utils/session";
|
||||
|
||||
/**
|
||||
* 安全退出登录函数
|
||||
* 清除登录相关数据,但保留用户偏好设置(如主题)
|
||||
*/
|
||||
export const safeLogout = () => {
|
||||
localStorage.clear();
|
||||
clearSession();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user