yangyin
2024-07-22 297d4eae775120b9de4a52ad4b90c0137b186554
Merge branch 'master' of http://47.103.154.90:83/r/WI/Web.V1.0
已修改1个文件
19 ■■■■ 文件已修改
src/components/chat/components/playBar/PlayBar.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/components/playBar/PlayBar.vue
@@ -76,17 +76,16 @@
    }
};
const audioChangeWord = () => {
    // navigator.getUserMedia(
    //     { audio: true },
    //     function onSuccess(stream) {
    //         voicePageIsShow.value = true;
    //     },
    //     function onError(error) {
    //         ElMessage.warning('请打开麦克风权限');
    //     }
    // );
    navigator.getUserMedia(
        { audio: true },
        function onSuccess(stream) {
            voicePageIsShow.value = true;
        },
        function onError(error) {
            ElMessage.warning('请打开麦克风权限');
        }
    );
    voicePageIsShow.value = true;
};
</script>