From 859ec7a60a9a1f30c898dbf1ae05c50dccfc40e5 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Thu, 11 Aug 2022 01:51:55 +0800 Subject: [PATCH] 优化视频模块内页 --- src/components/layouts/baseLayout.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/layouts/baseLayout.vue b/src/components/layouts/baseLayout.vue index a168c40..0d14dee 100644 --- a/src/components/layouts/baseLayout.vue +++ b/src/components/layouts/baseLayout.vue @@ -5,13 +5,16 @@ <tag-Header /> </a-layout-header> - <router-view></router-view> + <keep-alive> + <router-view @showMyVideo="showMyVideo"></router-view> + </keep-alive> <a-layout-footer> <AplayerBox /> <tagFooter /> + <MyVideo ref="MyVideo" /> </a-layout-footer> - + <a-back-top> <a-icon type="up" />回到顶部 </a-back-top> @@ -23,11 +26,13 @@ import tagHeader from "../fixed/header.vue" import tagFooter from "../fixed/footer.vue" import AplayerBox from "../mini/Aplayer.vue" + import MyVideo from "../group/MyVideo.vue" export default { components: { tagHeader, tagFooter, AplayerBox, + MyVideo, }, data() { return { @@ -35,7 +40,9 @@ } }, methods: { - + showMyVideo(param) { + this.$refs.MyVideo.showModal(param); + }, // 下载文件 down: function() { console.log(111); @@ -90,6 +97,10 @@ } } + .ant-timeline-item-head { + background-color: transparent !important; + } + } span, -- Gitblit v1.9.1