Skip to content

Commit 4b79825

Browse files
committed
update project
1 parent 9e5a956 commit 4b79825

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pages/blog.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export default {
3737
asyncData({ $axios, query, error }) {
3838
const page = +query.page || 1
3939
return $axios
40-
.get(`//techtalk.vn/wp-json/wp/v2/posts?_embed&page=${page}&per_page=20`)
40+
.get(
41+
`https://techtalk.vn/wp-json/wp/v2/posts?_embed&page=${page}&per_page=20`
42+
)
4143
.then((res) => {
4244
return {
4345
posts: res.data,

pages/p/_slug.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export default {
7878
const slug = params.slug
7979
try {
8080
const res = await $axios.get(
81-
`//techtalk.vn/wp-json/wp/v2/posts?_embed&slug=${slug}`
81+
`https://techtalk.vn/wp-json/wp/v2/posts?_embed&slug=${slug}`
8282
)
8383
const resRd = await $axios.get(
84-
`//techtalk.vn/wp-json/wp/v2/posts?_embed&categories=${
84+
`https://techtalk.vn/wp-json/wp/v2/posts?_embed&categories=${
8585
res.data[0].categories[0]
8686
}`
8787
)
@@ -97,7 +97,7 @@ export default {
9797
error({ statusCode: 404, message: ex })
9898
}
9999
// return $axios
100-
// .get(`//techtalk.vn/wp-json/wp/v2/posts?_embed&slug=${slug}`)
100+
// .get(`https://techtalk.vn/wp-json/wp/v2/posts?_embed&slug=${slug}`)
101101
// .then((res) => {
102102
// if (!res.data.length)
103103
// error({ statusCode: 404, message: 'Post not found!' })

0 commit comments

Comments
 (0)