mirror of https://github.com/fantasticit/think.git
client: update toast info
This commit is contained in:
parent
df1b1cedd3
commit
8d910cf8b4
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue