|
@@ -182,9 +182,7 @@
|
|
|
);
|
|
|
//设置socket 参数
|
|
|
const initParams: SocketParams = {
|
|
|
- userId:
|
|
|
- browser.getURLParam('vruserId') ||
|
|
|
- `user_${browser.getURLParam('role')}${Math.floor(Math.random() * 100000000)}`,
|
|
|
+ userId: browser.getURLParam('vruserId') || `user_${Math.floor(Math.random() * 100000000)}`,
|
|
|
roomId: browser.getURLParam('roomId') || `room_${Math.floor(Math.random() * 100000000)}`,
|
|
|
role: (browser.getURLParam('role') as RoleType) || 'leader',
|
|
|
avatar: browser.getURLParam('avatar'),
|
|
@@ -347,10 +345,7 @@
|
|
|
const handleCreateShare = () => {
|
|
|
const search = new URLSearchParams();
|
|
|
search.set('isTour', '0');
|
|
|
- search.set(
|
|
|
- 'vruserId',
|
|
|
- `user_${browser.getURLParam('role')}${Math.floor(Math.random() * 100000000)}`,
|
|
|
- );
|
|
|
+ search.set('vruserId', `user_${Math.floor(Math.random() * 100000000)}`);
|
|
|
search.set('role', 'customer');
|
|
|
search.set('name', '');
|
|
|
search.set('roomId', `${rtcStore.roomId}`);
|