liuyu 4 年之前
父节点
当前提交
72a65f6f35
共有 1 个文件被更改,包括 7 次插入1 次删除
  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);