注释 测试用户 数据

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>}
*/
export const getUserProfile = async (): Promise<any> => {
const t = {
id: '1',
userId: '1',
username: 'test',
name: 'test',
email: 'test@test.com',
role: 'USER',
isActive: 1,
authType: 'email',
lastLogin: new Date(),
}
setUser(t);
return t;
// const t = {
// id: '1',
// userId: '1',
// username: 'test',
// name: 'test',
// email: 'test@test.com',
// role: 'USER',
// isActive: 1,
// authType: 'email',
// lastLogin: new Date(),
// }
// setUser(t);
// return t;
try {
const token = getToken();
if (!token) {