src/components/chat/components/playBar/PlayBar.vue | ●●●●● 补丁 | 查看 | 原始文档 | 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>