mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
358 B
TypeScript
16 lines
358 B
TypeScript
import type { UserLoginInfo } from 'tailchat-shared';
|
|
|
|
let _userLoginInfo: UserLoginInfo;
|
|
|
|
export function setGlobalUserLoginInfo(loginInfo: UserLoginInfo) {
|
|
_userLoginInfo = loginInfo;
|
|
}
|
|
|
|
/**
|
|
* 获取全局用户登录信息
|
|
* 信息来源可能为注册页面或者登录页面
|
|
*/
|
|
export function getGlobalUserLoginInfo() {
|
|
return _userLoginInfo;
|
|
}
|