fix(mobile): reset page scroll on route entry
This commit is contained in:
@@ -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))} · 建设中` : '建设中';
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user