liuyu 4 år sedan
förälder
incheckning
4fac640bc9
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/layout/live/detailInfo.vue

+ 3 - 3
src/layout/live/detailInfo.vue

@@ -76,7 +76,7 @@ export default {
       this.microphones = await TRTC.getMicrophones();
     },
     async initclient() {
-      const res = await this.gensignFetch(this.id);
+      const res = await this.gensignFetch(this.user.uid);
       if (this.$checkRes(res)) {
         this.userSig_ = res.data;
         console.log(res);
@@ -102,7 +102,7 @@ export default {
         video: true,
         cameraId: this.cameraId,
         microphoneId: this.microphoneId,
-        userId: this.userId_,
+        userId: this.user.uid,
       });
       await localStream_.initialize();
       console.log('initialize local stream success');
@@ -112,7 +112,7 @@ export default {
       //$('#mask_main').appendTo($('#player_' + this.localStream_.getId()));
     },
     async shareon() {
-      const shareId = 'share-' + this.userId_;
+      const shareId = 'share-' + this.user.uid;
       const res = await this.gensignFetch(shareId);
       if (this.$checkRes(res)) {
         const shareClient = TRTC.createClient({