remove userId
This commit is contained in:
parent
969f01e275
commit
5f672eaa66
2 changed files with 2 additions and 4 deletions
|
@ -429,7 +429,7 @@ const ChatWindow = ({id}: { id?: string }) => {
|
|||
setUserId(storedUserId);
|
||||
console.debug('Using existing user ID:', storedUserId);
|
||||
} else {
|
||||
const newUserId = new Mcid().generate().toString(); // 转换为字符串
|
||||
const newUserId = new Mcid().generate().toString();
|
||||
|
||||
localStorage.setItem('userId', newUserId);
|
||||
setUserId(newUserId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue