From e5364bb4460970a7d81696c91fbd02926efd6565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Mon, 25 Jun 2018 13:47:56 -0500 Subject: [PATCH] Smooth scroll for /api --- content/.vuepress/components/Slate.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/.vuepress/components/Slate.vue b/content/.vuepress/components/Slate.vue index 2b95e3d..8687e8e 100644 --- a/content/.vuepress/components/Slate.vue +++ b/content/.vuepress/components/Slate.vue @@ -51,7 +51,6 @@ return { content: {}, htmlContent: "", - markdownFile: "", searchIndex: {}, searchResults: {}, toc: {} @@ -69,10 +68,11 @@ highlightOffset: 60, ignoreSelector: ".toc-ignore", scrollHistory: false, - scrollTo: -1, + scrollTo: 84, selectors: "h2", showEffectSpeed: 0, - smoothScroll: false, + smoothScroll: true, + smoothScrollSpeed: 0, theme: "none" }).data("toc-tocify"); @@ -156,7 +156,6 @@ }, created: function () { - console.log(this.markdownFile); this.$http.get(this.markdownFile).then(function (response) { this.htmlContent = md.render(response.body);