Showing
8 changed files
with
33 additions
and
9 deletions
| @@ -824,8 +824,11 @@ Page({ | @@ -824,8 +824,11 @@ Page({ | ||
| 824 | * 生命周期函数--监听页面卸载 | 824 | * 生命周期函数--监听页面卸载 |
| 825 | */ | 825 | */ |
| 826 | onUnload() { | 826 | onUnload() { |
| 827 | - | ||
| 828 | - }, | 827 | + clearInterval(this.timers) |
| 828 | + if (this.audioCtx) { | ||
| 829 | + this.audioCtx.destroy(); // 释放音频资源 | ||
| 830 | + } | ||
| 831 | +z }, | ||
| 829 | 832 | ||
| 830 | /** | 833 | /** |
| 831 | * 页面相关事件处理函数--监听用户下拉动作 | 834 | * 页面相关事件处理函数--监听用户下拉动作 |
-
Please register or login to post a comment