房间id生成修改

This commit is contained in:
2026-05-17 20:59:34 +08:00
parent 457e59a4d0
commit 7ff53c2cfd
3 changed files with 18 additions and 6 deletions

View File

@@ -92,3 +92,12 @@ export function toggleButtonState(button, active) {
}
}
}
/**
* 生成随机会议ID
* @returns {string} 随机会议ID
*/
export function randomMeetingId() {
const part = () => Math.floor(100 + Math.random() * 900);
return `${part()}-${part()}-${part()}`;
}