Forráskód Böngészése

Merge branch 'master' of http://git.cc-lotus.info/live-platform/live-cms

guhongwei 4 éve
szülő
commit
e22b5044de
1 módosított fájl, 3 hozzáadás és 3 törlés
  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({