feat(release): close handler and microphone gaps
This commit is contained in:
@@ -424,7 +424,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, nextTick, ref } from 'vue';
|
||||
import { onHide, onShow, onUnload } from '@dcloudio/uni-app';
|
||||
import { isPlatformFileSelectionActive } from '@/services/file-selection-lifecycle';
|
||||
import { isPlatformNativeActivityActive } from '@/services/file-selection-lifecycle';
|
||||
import type {
|
||||
AnswerFeedbackVerdict,
|
||||
BroadcastKnowledgeContext,
|
||||
@@ -1565,8 +1565,10 @@ onHide(() => {
|
||||
candidateRefreshGeneration += 1;
|
||||
cancelPendingBroadcastConsultation();
|
||||
speechPlayback.stop();
|
||||
composerRef.value?.teardown();
|
||||
if (!isPlatformFileSelectionActive()) cancelVoiceTranscription();
|
||||
if (!isPlatformNativeActivityActive()) {
|
||||
composerRef.value?.teardown();
|
||||
cancelVoiceTranscription();
|
||||
}
|
||||
cancelPendingMediaSearch();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user