From 8ec9c517c58b70918f2d72f2bfa6ab4b0a4145f9 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Fri, 19 Aug 2022 18:03:39 +0800
Subject: [PATCH] 局部细节调整

---
 src/components/group/MyVideo.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/components/group/MyVideo.vue b/src/components/group/MyVideo.vue
index c04e931..9b57872 100644
--- a/src/components/group/MyVideo.vue
+++ b/src/components/group/MyVideo.vue
@@ -1,7 +1,7 @@
 <template>
 	<div class="myModal">
 		<a-modal v-model="visible" title="视频盒子" :width="myWidth" :footer="null" :mask="false" :maskClosable="true"
-			:bodyStyle="{'overflow':'overlay','height': '750px'}" :afterClose="afterClose" >
+			:bodyStyle="{'overflow':'overlay','height': '700px'}" :afterClose="afterClose">
 			<videoDetail ref="videoDetail" :showFade="showFade"></videoDetail>
 		</a-modal>
 	</div>
@@ -62,6 +62,10 @@
 				}
 			},
 			showModal(param) {
+				if (this.$route.path == "/videoDetail") {
+					this.$message.info("已经在播放页面啦..")
+					return
+				}
 				this.visible = true;
 				this.$nextTick(function() {
 					this.$refs.videoDetail.showVideo(param)
@@ -71,6 +75,9 @@
 				this.visible = false;
 			},
 			afterClose() {
+				//关闭视频播放
+				this.$refs.videoDetail.$refs.videoPlayBox.pauseMyVideo()
+				
 				this.$emit("closeMyVideo")
 			}
 		},

--
Gitblit v1.9.1