Commit 46880a15 authored by spc's avatar spc

语音md.sensorLogTake({

        xcxClick: 小程序页面点击事件,
        pageName: 喂养工具首页,
        buttonName: 语音识别录制结束按钮,
    });
parent 5f96ef12
......@@ -2990,11 +2990,7 @@ async function startRecording() {
async function stopRecording() {
console.log('停止录音请求...')
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养工具首页",
buttonName: "语音识别录制结束按钮",
});
// 检查录音是否真正开始
if (!recordingState.value.isRecording || !recordingState.value.recordingStartTime) {
......@@ -3002,6 +2998,13 @@ async function stopRecording() {
return
}
md.sensorLogTake({
xcxClick: "小程序页面点击事件",
pageName: "喂养工具首页",
buttonName: "语音识别录制结束按钮",
});
console.log('停止录音...')
recordingState.value.isRecording = false
voiceRecognitionState.value.isRecording = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment