|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
|
|
|
|
-import { genTestUserSig } from '@/utils/generateTestUserSig';
|
|
|
|
|
|
+// import { genTestUserSig } from '@/utils/generateTestUserSig';
|
|
// import { apis } from '@/apis';
|
|
// import { apis } from '@/apis';
|
|
|
|
|
|
|
|
|
|
@@ -38,6 +38,7 @@ export default {
|
|
userId: state => state.userId,
|
|
userId: state => state.userId,
|
|
roomId: state => state.roomId,
|
|
roomId: state => state.roomId,
|
|
secretKey: state => state.secretKey,
|
|
secretKey: state => state.secretKey,
|
|
|
|
+ userSig: state => state.userSig,
|
|
audioDeviceId: state => state.audioDeviceId,
|
|
audioDeviceId: state => state.audioDeviceId,
|
|
videoDeviceId: state => state.videoDeviceId,
|
|
videoDeviceId: state => state.videoDeviceId,
|
|
cameraList: state => state.cameraList,
|
|
cameraList: state => state.cameraList,
|
|
@@ -86,17 +87,17 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
- createShareLink(state, payload) {
|
|
|
|
- const userId = `Guest_${Math.floor(Math.random() * 1000000)}`;
|
|
|
|
- const { userSig } = genTestUserSig({
|
|
|
|
- sdkAppId: parseInt(state.sdkAppId, 10),
|
|
|
|
- userId,
|
|
|
|
- secretKey: state.secretKey,
|
|
|
|
- });
|
|
|
|
- const { origin } = window.location;
|
|
|
|
- const { pathname } = window.location;
|
|
|
|
- return `${origin}${pathname}#/invite?userSig=${userSig}&&SDKAppId=${state.sdkAppId}&&userId=${userId}&&roomId=${state.roomId}`;
|
|
|
|
- },
|
|
|
|
|
|
+ // createShareLink(state, payload) {
|
|
|
|
+ // const userId = `Guest_${Math.floor(Math.random() * 1000000)}`;
|
|
|
|
+ // const { userSig } = genTestUserSig({
|
|
|
|
+ // sdkAppId: parseInt(state.sdkAppId, 10),
|
|
|
|
+ // userId,
|
|
|
|
+ // secretKey: state.secretKey,
|
|
|
|
+ // });
|
|
|
|
+ // const { origin } = window.location;
|
|
|
|
+ // const { pathname } = window.location;
|
|
|
|
+ // return `${origin}${pathname}#/invite?userSig=${userSig}&&SDKAppId=${state.sdkAppId}&&userId=${userId}&&roomId=${state.roomId}`;
|
|
|
|
+ // },
|
|
|
|
|
|
},
|
|
},
|
|
actions: {
|
|
actions: {
|