[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',
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),