mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
fixed route links
This commit is contained in:
parent
0615cd0983
commit
8b57e6ea47
1 changed files with 2 additions and 6 deletions
|
@ -3,7 +3,8 @@
|
||||||
<v-card
|
<v-card
|
||||||
:class="{ 'on-hover': hover }"
|
:class="{ 'on-hover': hover }"
|
||||||
:elevation="hover ? 12 : 2"
|
:elevation="hover ? 12 : 2"
|
||||||
@click="moreInfo(slug)"
|
:to="route ? `/recipe/${slug}` : ''"
|
||||||
|
@click="$emit('click')"
|
||||||
>
|
>
|
||||||
<v-img height="200" :src="getImage(image)"></v-img>
|
<v-img height="200" :src="getImage(image)"></v-img>
|
||||||
<v-card-title class="my-n3 mb-n6">{{ name | truncate(30) }}</v-card-title>
|
<v-card-title class="my-n3 mb-n6">{{ name | truncate(30) }}</v-card-title>
|
||||||
|
@ -52,11 +53,6 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
moreInfo(recipeSlug) {
|
|
||||||
if (this.route) {
|
|
||||||
this.$router.push(`/recipe/${recipeSlug}`);
|
|
||||||
} else this.$emit("click");
|
|
||||||
},
|
|
||||||
getImage(image) {
|
getImage(image) {
|
||||||
return utils.getImageURL(image);
|
return utils.getImageURL(image);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue