liuyu hace 5 años
padre
commit
1f6226f921
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;