liuyu 5 년 전
부모
커밋
0fd98c6fde
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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' });