This commit is contained in:
parent
deeccaad03
commit
f24848d034
1 changed files with 2 additions and 2 deletions
|
|
@ -76,8 +76,8 @@ onBeforeMount(() => {
|
|||
});
|
||||
|
||||
onMounted(() => {
|
||||
if (route.hash.length > 0) {
|
||||
const targetBtn = document.querySelector(route.hash);
|
||||
const targetBtn = document.querySelector(route.hash);
|
||||
if (targetBtn) {
|
||||
targetBtn.scrollIntoView();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue