feat(mobile): add voice transcription to practice

This commit is contained in:
2026-07-09 13:41:48 +08:00
parent 04405b5e11
commit 4ef388873b
6 changed files with 245 additions and 2 deletions
+6
View File
@@ -1,9 +1,15 @@
export const resetPageScroll = () => {
const scrollTop = () => {
uni.pageScrollTo({ scrollTop: 0, duration: 0 });
if (typeof window !== 'undefined') {
window.scrollTo({ top: 0, left: 0, behavior: 'auto' });
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
}
};
scrollTop();
setTimeout(scrollTop, 0);
setTimeout(scrollTop, 80);
setTimeout(scrollTop, 240);
};