diff --git a/content/.vuepress/components/Slate.vue b/content/.vuepress/components/Slate.vue index 4e767fb..7d6da1b 100644 --- a/content/.vuepress/components/Slate.vue +++ b/content/.vuepress/components/Slate.vue @@ -53,7 +53,8 @@ htmlContent: "", searchIndex: {}, searchResults: {}, - toc: {} + toc: {}, + markdownFile: "" } }, @@ -154,8 +155,8 @@ } }, - mounted: function () { - this.$http.get("/api.md").then(function (response) { + created: function () { + this.$http.get(this.markdownFile).then(function (response) { this.htmlContent = md.render(response.body); this.$nextTick(function () { diff --git a/content/slate-test.md b/content/slate-test.md index f9737ef..995ac2e 100644 --- a/content/slate-test.md +++ b/content/slate-test.md @@ -1 +1,3 @@ - + + + \ No newline at end of file