I tried this in my layout:(Here is the same problem)
<code>onMounted(() => {
if (process.client && window) {
window.history.scrollRestoration = "auto";
}
});
</code>
<code>onMounted(() => {
if (process.client && window) {
window.history.scrollRestoration = "auto";
}
});
</code>
onMounted(() => {
if (process.client && window) {
window.history.scrollRestoration = "auto";
}
});
But it doesn’t work.