From 168b58741c9a21f01aa7677177262c06d36e3dc7 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期四, 10 七月 2025 17:24:11 +0800 Subject: [PATCH] 资源优化 --- packageBookService/pages/bookServices/examination/questionList/index.js | 18 ++++++++---------- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionList/index.js b/packageBookService/pages/bookServices/examination/questionList/index.js index 0a00adc..1669dde 100644 --- a/packageBookService/pages/bookServices/examination/questionList/index.js +++ b/packageBookService/pages/bookServices/examination/questionList/index.js @@ -34,17 +34,15 @@ type: Boolean, } }, - observers: { - 'questionList': function (newValue) { - console.log(newValue); + observers: {}, + detached() { + if (innerAudioContext) { + try { + innerAudioContext.stop(); + innerAudioContext.destroy(); + } catch (error) {} } - }, - created() { - // console.log('缁勪欢浼犲弬', this.properties); - }, - ready() { - innerAudioContext.stop(); - innerAudioContext.destroy(); + }, /** * 缁勪欢鐨勫垵濮嬫暟鎹� -- Gitblit v1.9.1