修改播放逻辑处理

master
于肖磊 2026-01-08 10:46:16 +08:00
parent eed6228778
commit 4f52715273
1 changed files with 8 additions and 0 deletions

View File

@ -154,6 +154,10 @@
// 访
// , ,
auto_play_success(e) {
uni.showToast({
title: this.muted ? '静音播放成功' : '非静音播放成功',
icon: 'none'
});
//
if (e) {
this.$emit('mutedAutoPlaySuccess', this.muted);
@ -170,6 +174,10 @@
//
if (!e) {
console.log(this.muted);
uni.showToast({
title: this.muted ? '静音播放失败' : '非静音播放失败',
icon: 'none'
});
//
if (this.muted) {
this.$emit('mutedAutoPlayError');