[Doc] increase anchor wait time

This commit is contained in:
陈嘉涵 2019-07-15 16:02:17 +08:00
parent edb1b1f3f4
commit 5c70473f87

View File

@ -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),