注释 测试用户 数据

This commit is contained in:
北枳 2025-08-30 21:03:30 +08:00
parent 6c283f2d19
commit 2a7011b365

View File

@ -248,19 +248,19 @@ export const validateOAuthState = (state: string): boolean => {
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
export const getUserProfile = async (): Promise<any> => { export const getUserProfile = async (): Promise<any> => {
const t = { // const t = {
id: '1', // id: '1',
userId: '1', // userId: '1',
username: 'test', // username: 'test',
name: 'test', // name: 'test',
email: 'test@test.com', // email: 'test@test.com',
role: 'USER', // role: 'USER',
isActive: 1, // isActive: 1,
authType: 'email', // authType: 'email',
lastLogin: new Date(), // lastLogin: new Date(),
} // }
setUser(t); // setUser(t);
return t; // return t;
try { try {
const token = getToken(); const token = getToken();
if (!token) { if (!token) {