liuyu hace 4 años
padre
commit
72a65f6f35
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      src/views/live/roomDetail.vue

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

@@ -451,8 +451,14 @@ export default {
     },
     async swichzbVideo(switchzjr) {
       //
-      const newdatas = [];
       const mainstrem_ = _.find(this.stremlist, { type: 'mainr' });
+      const newdatas = [];
+      if (switchzjr) {
+        const othestrem_ = _.find(this.stremOtherlist, { switchzjrid: switchzjr, type: 'other' });
+        if (othestrem_) {
+          this.stermStop(othestrem_.strem);
+        }
+      }
       if (mainstrem_) {
         newdatas.push(mainstrem_);
         this.$set(this, `stremlist`, newdatas);