fix(mobile): drive learning search from assignments

This commit is contained in:
2026-07-10 02:20:56 +08:00
parent 4b951d07a0
commit 0219de6fa8
8 changed files with 213 additions and 26 deletions
+15
View File
@@ -13,3 +13,18 @@ export const resetPageScroll = () => {
setTimeout(scrollTop, 80);
setTimeout(scrollTop, 240);
};
const switchToToday = () => {
uni.switchTab({ url: '/pages/user/today/index' });
};
export const navigateBackToToday = () => {
if (getCurrentPages().length <= 1) {
switchToToday();
return;
}
uni.navigateBack({
delta: 1,
fail: switchToToday
});
};