netlify is more reliable
This commit is contained in:
1 parent
7fe8f5d154
commit
4dfff986d4
16 files changed
+42
-105
No files matched your search
@@ -23,7 +23,7 @@ import PostHeader from './PostHeader.vue'
|
||||
import Empty from './Empty.vue'
|
||||
import { Vue, Component, Prop, Watch } from 'nuxt-property-decorator'
|
||||
import { makeHtml } from '../assets/make-html'
|
||||
import { globalStore } from '../store'
|
||||
import { HASH } from '../assets/util'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -44,9 +44,9 @@ export default class PostFull extends Vue {
|
||||
@Watch('header.path')
|
||||
async updatePost () {
|
||||
if (!this.markdown) {
|
||||
this.markdown = await fetch(`/build/teaser/${this.header.path}?h=${globalStore.hash.posts[this.header.path]}`).then((r) => r.text())
|
||||
this.markdown = await fetch(`/build/teaser/${this.header.path}?h=${HASH.posts[this.header.path]}`).then((r) => r.text())
|
||||
}
|
||||
this.markdown = await fetch(`/build/full/${this.header.path}?h=${globalStore.hash.posts[this.header.path]}`).then((r) => r.text())
|
||||
this.markdown = await fetch(`/build/full/${this.header.path}?h=${HASH.posts[this.header.path]}`).then((r) => r.text())
|
||||
}
|
||||
|
||||
get html () {
|
||||
|
||||
Reference in new issue
Block a user