From 1b6f1e454fff0187d4d30dcf0d5819d4f57f1787 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Mon, 29 Aug 2022 01:05:14 +0800 Subject: [PATCH] 新增iframe 播放页 新增日志编辑页 --- src/components/mini/Aplayer.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/mini/Aplayer.vue b/src/components/mini/Aplayer.vue index ef7612d..9421d4d 100644 --- a/src/components/mini/Aplayer.vue +++ b/src/components/mini/Aplayer.vue @@ -1,8 +1,9 @@ <template> <div class="fade"> - <!-- <a-col v-bind="colMain"> - </a-col> --> - <aplayer :audio="audio" :autoplay="autoplay" fixed style="z-index: 10;" :volume="0.1" :preload="preload" /> + <a-col v-bind="colMain"> + <aplayer ref="myAplayer" :audio="audio" :autoplay="autoplay" fixed style="z-index: 10;" :volume="0.1" + :preload="preload" /> + </a-col> <!-- <a-modal ref="musicModal" title="" :dialog-style="{ top: '10px' }" :mask="false" :maskClosable="false" :visible="modal1Visible" @ok="() => setModal1Visible(false)" @cancel="() => setModal1Visible(false)"> @@ -15,7 +16,12 @@ import APlayer from '@moefe/vue-aplayer'; export default { - + created() { + this.$nextTick(function() { + this.$message.info("stop..") + this.$refs.myAplayer.pause(); + }) + }, data() { return { colMain: { @@ -26,7 +32,7 @@ xl: 1, xxl: 1 }, - autoplay:false, + autoplay: false, modal1Visible: true, secondsToGo: 5, preload: "none", -- Gitblit v1.9.1