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

-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 {