fix: leave user will can not login (#1345)

This commit is contained in:
Archer
2024-05-06 10:41:01 +08:00
committed by GitHub
parent bf6084da69
commit b500631a4d

View File

@@ -22,7 +22,10 @@ export async function getUserDetail({
}): Promise<UserType> {
const tmb = await (async () => {
if (tmbId) {
return getTmbInfoByTmbId({ tmbId });
try {
const result = await getTmbInfoByTmbId({ tmbId });
return result;
} catch (error) {}
}
if (userId) {
return getUserDefaultTeam({ userId });