mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-14 20:19:35 +01:00
Fix all
This commit is contained in:
BIN
assets/img/works/erisium.png
Normal file
BIN
assets/img/works/erisium.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -127,11 +127,11 @@ export default {
|
||||
error({ statusCode: 404, message: "Post not found" });
|
||||
});
|
||||
const {data: likes} = await $axios.get(`posts/${params.slug}`)
|
||||
const liked = await $axios.get(`posts/is/${params.slug}`)
|
||||
const liked = 0 // await $axios.get(`posts/is/${params.slug}`)
|
||||
return {
|
||||
post,
|
||||
likes,
|
||||
liked: liked.data !== 0
|
||||
liked: 0//liked.data !== 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -149,7 +149,7 @@ export default {
|
||||
}, 7000)
|
||||
},
|
||||
async handleLike() {
|
||||
if (this.liked) {
|
||||
/*if (this.liked) {
|
||||
const {data} = await this.$axios.post(`posts/${this.post.slug}/unlike`)
|
||||
if (data.code === 200) {
|
||||
this.liked = false
|
||||
@@ -161,7 +161,7 @@ export default {
|
||||
this.liked = true
|
||||
this.likes = data.post.likes
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</nuxt-link>
|
||||
</div>
|
||||
</div>
|
||||
<!--<img class="w-4/5 rounded-xl" :src="require(`@/assets/img/works/${work.cover}.png`)" alt="Project Img" /> -->
|
||||
<img class="w-4/5 rounded-xl" :src="require(`@/assets/img/works/${work.cover}.png`)" alt="Project Img" />
|
||||
<a
|
||||
class="mt-4 py-3 px-6 rounded-full cursor-pointer duration-300 mb-10 lg:mb-0"
|
||||
:class="'bg-' + work.color + '-400 hover:bg-' + work.color + '-600'"
|
||||
|
||||
Reference in New Issue
Block a user