src/components/chat/components/playBar/PlayBar.vue
@@ -76,15 +76,18 @@ } }; 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> <style scoped lang="scss">