liuyu il y a 4 ans
Parent
commit
716092b7c1
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/views/live/roomDetail.vue

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

@@ -218,10 +218,11 @@ export default {
       lvr_.style.cssText = style;
     },
     swichposition(objid) {
-      objid = this.userid_;
+      console.log('in swichposition---' + objid);
       if (!objid) {
         return;
       }
+      console.log(this.swichusers);
       const width = document.documentElement.clientWidth;
       for (const elm of this.swichusers) {
         if (elm.swichuserid === objid) {
@@ -360,6 +361,7 @@ export default {
     onSwichShmaiMessage(message) {
       let body = _.get(message, 'body');
       console.log(body);
+      console.log(this.user.uid);
       if (body) {
         body = JSON.parse(body);
         if (body.shmaiid === this.user.uid) {