From 146176c4bfc7e936026fc02d96fdc175738d9e14 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Tue, 09 Aug 2022 19:04:51 +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..0f8f339 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() { + this.$refs.MyVideo.showModal(); + }, // 下载文件 down: function() { console.log(111); @@ -90,6 +97,10 @@ } } + .ant-timeline-item-head { + background-color: transparent !important; + } + } span, -- Gitblit v1.9.1