try to make redirect work properly
This commit is contained in:
1 parent
13d1110a7d
commit
1347796dbd
1 file changed
+1
-1
@@ -7,7 +7,7 @@ import { Vue, Component } from 'nuxt-property-decorator'
|
|||||||
|
|
||||||
@Component<BlogPage>({
|
@Component<BlogPage>({
|
||||||
async asyncData({ $axios }) {
|
async asyncData({ $axios }) {
|
||||||
const { result, count } = await $axios.$get('/api/q')
|
const { result, count } = (await $axios.$get('/api/q')) || {}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
posts: result,
|
posts: result,
|
||||||
|
|||||||
Reference in new issue
Block a user