Make Slate client-side only
This commit is contained in:
parent
729f2eecb1
commit
543b9102ad
2 changed files with 7 additions and 4 deletions
|
@ -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 () {
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
<!--/ < Slate markdown-file="/api.md" /> /-->
|
||||
<ClientOnly>
|
||||
<Slate markdown-file="/api.md"></Slate>
|
||||
</ClientOnly>
|
Loading…
Reference in a new issue