liuyu 4 rokov pred
rodič
commit
0fd98c6fde
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      src/views/live/roomDetail.vue

+ 2 - 1
src/views/live/roomDetail.vue

@@ -529,12 +529,13 @@ export default {
     },
     async initclient() {
       this.userId_ = this.user.uid;
+      const _userid = 'meetu-' + this.userId_;
       const res = await this.gensignFetch({ userid: this.userId_ });
       if (this.$checkRes(res)) {
         this.client_ = TRTC.createClient({
           mode: 'live',
           sdkAppId: this.sdkAppId_,
-          userId: this.userId_,
+          userId: _userid,
           userSig: res.data,
         });
         await this.client_.join({ roomId: this.roomname, role: 'anchor' });