diff --git a/client/web/src/components/popover/GroupUserPopover.tsx b/client/web/src/components/popover/GroupUserPopover.tsx index 30322f9f..76086922 100644 --- a/client/web/src/components/popover/GroupUserPopover.tsx +++ b/client/web/src/components/popover/GroupUserPopover.tsx @@ -34,15 +34,19 @@ export const GroupUserPopover: React.FC<{
{pluginUserExtraInfo.map((item, i) => { const Component = item.component?.render; + if (Component) { + // 自定义渲染方式 + return ( + + ); + } + + // 默认渲染方式 return (
{item.label}:
- {Component ? ( - - ) : ( - String(userExtra[item.name]) - )} + {userExtra[item.name] ? String(userExtra[item.name]) : ''}
);