try to make redirect work properly in static

This commit is contained in:
polv committed 2020-12-17 19:23:19 +07:00
1 parent f76b1fec34
commit cf94c66807
2 files changed
+2 -4

No files matched your search

+2
View File
@@ -8,6 +8,8 @@ const config = async (): Promise<NuxtConfig> => {
const theme = getTheme()
return {
target: 'static',
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
title: theme.title,
-4
View File
@@ -7,10 +7,6 @@ import { Vue, Component } from 'nuxt-property-decorator'
@Component<BlogPage>({
async asyncData({ $axios }) {
if (process.static && typeof location !== 'undefined') {
location.reload()
}
const { result, count } = await $axios.$get('/api/q')
return {