|
|
|
@@ -252,13 +252,13 @@ |
|
|
|
this.init(info) |
|
|
|
}, |
|
|
|
// 在组件实例被从页面节点树移除时执行 |
|
|
|
destroyed: function() { |
|
|
|
if (this.innerAudioContext) { |
|
|
|
this.innerAudioContext.destroy(); |
|
|
|
} |
|
|
|
onHide() { |
|
|
|
this.innerAudioContext.stop(); |
|
|
|
this.innerAudioContext.destroy(); |
|
|
|
}, |
|
|
|
// 销毁实例 |
|
|
|
onUnload: function() { |
|
|
|
onUnload() { |
|
|
|
this.innerAudioContext.stop(); |
|
|
|
this.innerAudioContext.destroy(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|