deploy to gcloud

This commit is contained in:
polv committed 2020-12-16 14:13:51 +07:00
1 parent e4e364ae2a
commit 4b7252c15f
12 files changed
+190 -121

No files matched your search

+1 -7
View File
@@ -9,7 +9,6 @@
<script lang="ts">
import { Vue, Component } from 'nuxt-property-decorator'
import { api } from '~/assets/global'
@Component<BlogPage>({
watch: {
@@ -17,18 +16,13 @@ import { api } from '~/assets/global'
'$route.query.page': '$fetch',
},
async fetch() {
const { result, count, error } = await api('/api/q', {
const { result, count } = await this.$axios.$get('/api/q', {
params: {
q: this.$route.query.q,
page: this.$route.query.page,
},
})
if (error) {
this.$nuxt.error(error)
return
}
this.posts = result
this.count = count
},