try to make redirect work properly

This commit is contained in:
polv committed 2020-12-17 19:17:20 +07:00
1 parent 13d1110a7d
commit 1347796dbd
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ import { Vue, Component } from 'nuxt-property-decorator'
@Component<BlogPage>({
async asyncData({ $axios }) {
const { result, count } = await $axios.$get('/api/q')
const { result, count } = (await $axios.$get('/api/q')) || {}
return {
posts: result,