chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -20,8 +20,8 @@ import { type UserInfo } from '../types';
import { useUserStore } from '../store/user';
/**
* 主动触发刷新用户信息
* @param checkLogin 登录检查函数
* Actively trigger to refresh user information
* @param checkLogin check function
*/
export const refreshUserInfoBase = async (
checkLogin: () => Promise<UserInfo>,

View File

@@ -21,14 +21,14 @@ import { type UserInfo, type LoginStatus } from '../types';
import { useUserStore } from '../store/user';
/**
* 获取用户信息
* @returns UserInfo 用户信息
* Acquire user information
* @returns UserInfo
*/
export const getUserInfo = () => useUserStore.getState().userInfo;
/**
* 获取登录状态
* @returns LoginStatus 登录状态
* Get login status
* @returns LoginStatus
*/
export const getLoginStatus = (): LoginStatus => {
const state = useUserStore.getState();