fix: user menu not display to guest because of 'id' not exist

This commit is contained in:
老周部落 2024-04-24 19:29:24 +08:00
parent 4816d75e23
commit dbad2a485f
No known key found for this signature in database
GPG key ID: C72181CD85C6B738

View file

@ -290,7 +290,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
os.post({ specified: user }); os.post({ specified: user });
}, },
}, },
me.id !== user.id isSignedIn(me) && me.id !== user.id
? { ? {
type: "link", type: "link",
icon: `${icon("ph-chats-teardrop")}`, icon: `${icon("ph-chats-teardrop")}`,
@ -313,7 +313,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
text: i18n.ts.addToList, text: i18n.ts.addToList,
action: pushList, action: pushList,
}, },
me.id !== user.id isSignedIn(me) && me.id !== user.id
? { ? {
icon: `${icon("ph-users-three")}`, icon: `${icon("ph-users-three")}`,
text: i18n.ts.inviteToGroup, text: i18n.ts.inviteToGroup,