client: update toast info

pull/64/head
fantasticit 2022-06-03 19:26:01 +08:00
parent df1b1cedd3
commit 8d910cf8b4
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import {
Input, Input,
Modal, Modal,
Popconfirm, Popconfirm,
Popover,
Spin, Spin,
Table, Table,
TabPane, TabPane,
@ -169,7 +168,7 @@ export const DocumentCollaboration: React.FC<IProps> = ({ wikiId, documentId, di
newCollaborationUsers.forEach((newUser) => { newCollaborationUsers.forEach((newUser) => {
if (currentUser && newUser.name !== currentUser.name && !toastedUsersRef.current.includes(newUser.id)) { if (currentUser && newUser.name !== currentUser.name && !toastedUsersRef.current.includes(newUser.id)) {
Toast.info(`${newUser.name}加入文档`); Toast.info(`${newUser.name}-${newUser.clientId}加入文档`);
toastedUsersRef.current.push(newUser.id); toastedUsersRef.current.push(newUser.id);
} }
}); });