File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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!' })
You can’t perform that action at this time.
0 commit comments