lanxin 1 هفته پیش
والد
کامیت
45454dc182
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      hot/src/views/Home.vue

+ 5 - 0
hot/src/views/Home.vue

@@ -230,6 +230,11 @@ export default {
       }
       let item = this.activeObj.images[this.myInd];
       this.resetList(item);
+      // 切换暂停播放视频
+      if (this.selectedTitle.includes("視頻") && this.$refs.videoRef?.[oldVal]) {
+        console.log("----oldVal", oldVal);
+        this.$refs.videoRef[oldVal].pause();
+      }
     },
     activeObj(newVal) {
       this.resetList(newVal.images[this.myInd]);