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