This commit is contained in:
fengerli
2026-03-27 11:25:48 +08:00

View File

@ -1079,10 +1079,7 @@
});
}
}).catch(() => {
uni.showToast({
title: '下发失败,请检查蓝牙或网络',
icon: 'none'
});
uni.showToast({ title: '下发失败,请检查蓝牙或网络', icon: 'none' });
});
} else if (prevVoiceType === '7' && val !== '7' && val !== '-1') {
// 从「播放语音」切到其它内置音色:先关播报;报警未开启时不走 forceAlarm仅 UI 预选音色
@ -1093,10 +1090,7 @@
};
deviceVoiceBroadcast(data).then((res) => {
if (res.code == 200) {
uni.showToast({
title: res.msg || '已切换',
icon: 'none'
});
uni.showToast({ title: res.msg || '已切换', icon: 'none' });
} else {
uni.showToast({
title: res.msg || '操作失败',