deploy to gcloud
This commit is contained in:
1 parent
e4e364ae2a
commit
4b7252c15f
12 files changed
+190
-121
No files matched your search
@@ -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
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user