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 | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/layouts/baseLayout.vue b/src/components/layouts/baseLayout.vue index 55dbd69..0f8f339 100644 --- a/src/components/layouts/baseLayout.vue +++ b/src/components/layouts/baseLayout.vue @@ -6,12 +6,13 @@ </a-layout-header> <keep-alive> - <router-view></router-view> + <router-view @showMyVideo="showMyVideo"></router-view> </keep-alive> - + <a-layout-footer> <AplayerBox /> <tagFooter /> + <MyVideo ref="MyVideo" /> </a-layout-footer> <a-back-top> @@ -25,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 { @@ -37,7 +40,9 @@ } }, methods: { - + showMyVideo() { + this.$refs.MyVideo.showModal(); + }, // 下载文件 down: function() { console.log(111); -- Gitblit v1.9.1