mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-03 01:06:36 +08:00
10 lines
213 B
TypeScript
10 lines
213 B
TypeScript
import { clearSession } from "@/utils/session";
|
|
|
|
/**
|
|
* 安全退出登录函数
|
|
* 清除登录相关数据,但保留用户偏好设置(如主题)
|
|
*/
|
|
export const safeLogout = () => {
|
|
clearSession();
|
|
};
|