fix(mobile): reset page scroll on route entry

This commit is contained in:
2026-07-09 13:34:24 +08:00
parent f517cbd2b5
commit 04405b5e11
11 changed files with 40 additions and 4 deletions
@@ -13,10 +13,12 @@
<script setup lang="ts">
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import { resetPageScroll } from '@/services/navigation';
const title = ref('建设中');
onLoad((query) => {
resetPageScroll();
title.value = query?.title ? `${decodeURIComponent(String(query.title))} · 建设中` : '建设中';
});