watch: {
muted(val) {
if (Array.isArray(this.$refs.audioPlayer)) {
this.$refs.audioPlayer.forEach((a) => {
a.muted = val;
});
} else {
this.$refs.audioPlayer.muted = val;
}
}
}
监听数据变化手动更改 audio muted值