mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Doc] increase anchor wait time
This commit is contained in:
parent
edb1b1f3f4
commit
5c70473f87
@ -44,6 +44,7 @@ new Vue({
|
||||
el: '#app',
|
||||
mounted() {
|
||||
if (this.$route.hash) {
|
||||
// wait page init
|
||||
setTimeout(() => {
|
||||
const el = document.querySelector(this.$route.hash);
|
||||
if (el) {
|
||||
@ -51,7 +52,7 @@ new Vue({
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
}, 500);
|
||||
}, 1000);
|
||||
}
|
||||
},
|
||||
render: h => h(App),
|
||||
|
Loading…
x
Reference in New Issue
Block a user