mirror of https://github.com/fantasticit/think.git
client: update editor user name
This commit is contained in:
parent
57959a904f
commit
c20c9794f9
|
@ -197,7 +197,7 @@ export const DocumentCollaboration: React.FC<IProps> = ({ wikiId, documentId, di
|
||||||
<AvatarGroup maxCount={5} size="extra-small">
|
<AvatarGroup maxCount={5} size="extra-small">
|
||||||
{collaborationUsers.map((user) => {
|
{collaborationUsers.map((user) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip key={user.id} content={`${user.name}`} position="bottom">
|
<Tooltip key={user.id} content={`${user.name}-${user.clientId}`} position="bottom">
|
||||||
<Avatar src={user.avatar} size="extra-small">
|
<Avatar src={user.avatar} size="extra-small">
|
||||||
{user.name && user.name.charAt(0)}
|
{user.name && user.name.charAt(0)}
|
||||||
</Avatar>
|
</Avatar>
|
||||||
|
|
|
@ -64,7 +64,7 @@ export const EditorInstance = forwardRef((props: IProps, ref) => {
|
||||||
provider: hocuspocusProvider,
|
provider: hocuspocusProvider,
|
||||||
user: {
|
user: {
|
||||||
...(user || {
|
...(user || {
|
||||||
name: '匿名用户正在阅读文章...',
|
name: '访客',
|
||||||
}),
|
}),
|
||||||
color: getRandomColor(),
|
color: getRandomColor(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue