Skip to content

Commit 62cddfe

Browse files
committed
added images to public folder
1 parent b68c91a commit 62cddfe

File tree

13 files changed

+765
-1
lines changed

13 files changed

+765
-1
lines changed

components/ArchiveBoxVerticalWithImage.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ function getImageUrl() {
2222
return new URL(`../assets/images/${props.img}`, import.meta.url)
2323
}
2424
25+
const imagePath = computed(() => {
26+
return '/images/' + props.img
27+
})
28+
2529
const linkTarget = computed(() => {
2630
return props.link.startsWith('https') ? '_blank' : '_self'
2731
})
@@ -34,7 +38,7 @@ function openLink() {
3438
<template>
3539
<div class="container" @click="openLink">
3640
<div v-if="props.img !== null" class="image-container">
37-
<img :src="getImageUrl()" alt="" />
41+
<img :src="imagePath" alt="" />
3842
</div>
3943
<div class="text-container">
4044
<div class="tag">{{ props.category }}</div>
Lines changed: 120 additions & 0 deletions
Loading
1.8 MB
Loading

0 commit comments

Comments
 (0)