liuyu 4 years ago
parent
commit
d342efa8bd
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/live/roomDetail.vue

+ 6 - 6
src/views/live/roomDetail.vue

@@ -462,14 +462,14 @@ export default {
       //
       const oldstrem_ = _.find(this.stremlist, { type: 'mainr' });
       if (oldstrem_) {
-        const swichstrem = _.find(this.stremMeetlist, { swichuserid: switchzjr });
         this.stermStop(oldstrem_.strem);
         this.stermPlay(oldstrem_.strem, 'look-video-right');
-        if (swichstrem) {
-          this.stermStop(swichstrem.strem);
-          const id_ = 'othe-video-' + swichstrem.index;
-          this.stermPlay(oldstrem_.strem, id_);
-        }
+      }
+      const swichstrem = _.find(this.stremMeetlist, { swichuserid: switchzjr });
+      if (swichstrem) {
+        this.stermStop(swichstrem.strem);
+        const id_ = 'othe-video-' + swichstrem.index;
+        this.stermPlay(oldstrem_.strem, id_);
       }
     },
     async userswichrole() {