liuyu 5 năm trước cách đây
mục cha
commit
1f6226f921
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/live/roomMeet.vue

+ 1 - 1
src/views/live/roomMeet.vue

@@ -166,7 +166,7 @@ export default {
       let body = _.get(message, 'body');
       if (body) {
         body = JSON.parse(body);
-        if (body.switchrole === 'anchor') {
+        if (body.switchrole === 'anchor' && body.userid === this.user.uid) {
           this.switchbtn = true;
         } else {
           this.switchbtn = false;