From 37f185ff7e652ebebbf7bcf883379e66b1c0313b Mon Sep 17 00:00:00 2001 From: zhaofengliang Date: Thu, 12 Dec 2024 17:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=83=8C=E6=99=AF=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E7=A4=BA=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-background-audio-manager.uvue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/API/get-background-audio-manager/get-background-audio-manager.uvue b/pages/API/get-background-audio-manager/get-background-audio-manager.uvue index 0c7c0eff..186260b2 100644 --- a/pages/API/get-background-audio-manager/get-background-audio-manager.uvue +++ b/pages/API/get-background-audio-manager/get-background-audio-manager.uvue @@ -59,6 +59,8 @@ bgAudioMannager.singer = '歌手:暂无' + this.count; bgAudioMannager.coverImgUrl = 'https://web-assets.dcloud.net.cn/unidoc/zh/Alice.jpeg'; bgAudioMannager.src = this.dataUrl; + this.currentTime = bgAudioMannager.currentTime + this.duration = bgAudioMannager.duration bgAudioMannager.onCanplay(() => { console.log("音频进入可以播放状态事件"); this.buffered = bgAudioMannager.buffered; @@ -211,4 +213,4 @@ flex-direction: row; justify-content: center; } - \ No newline at end of file + -- GitLab