diff --git a/src/pages/ChatMain/ChatInputArea/index.vue b/src/pages/ChatMain/ChatInputArea/index.vue index 6d8067a..9dab1c0 100644 --- a/src/pages/ChatMain/ChatInputArea/index.vue +++ b/src/pages/ChatMain/ChatInputArea/index.vue @@ -128,11 +128,9 @@ let manager = null; let speechProvider = ""; const isSpeechRecognitionEnabled = ref(true); const isSpeechRecognitionSupported = ref(false); +let appSpeechOptions = {}; // #ifdef APP-PLUS -const appSpeechOptions = appSpeechRecognitionOptions; -// #endif -// #ifndef APP-PLUS -const appSpeechOptions = {}; +appSpeechOptions = appSpeechRecognitionOptions; // #endif // WechatSI 是微信小程序插件,App 原生基座没有 requirePlugin。