gerson
2024-07-20 6267f53144c3895cf6bb5494b5b85aa55fa762d9
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">