diff --git a/pages/API/create-inner-audio-context/create-inner-audio-context.uvue b/pages/API/create-inner-audio-context/create-inner-audio-context.uvue index 99188b5bc7f309d291d20a5dcbaab8b81d3e01d2..0eb3fa0f14e0fe5d5274693adf17df409bcbcbad 100644 --- a/pages/API/create-inner-audio-context/create-inner-audio-context.uvue +++ b/pages/API/create-inner-audio-context/create-inner-audio-context.uvue @@ -5,7 +5,8 @@ - + 属性示例 @@ -42,7 +43,7 @@ - + @@ -130,7 +131,9 @@ }, onUnload() { if (this._audioContext != null && this.isPlaying) { - this.stop(); + if (this.isPlaying) { + this.stop(); + } this._audioContext!.destroy() } }, @@ -232,6 +235,7 @@ this.isPlaying = false; this.isPaused = true; this.isPlayEnd = true; + (this.$refs["slider"] as UniSliderElement).value = 0 }); }, onError() {