Skip to content

Commit

Permalink
fix(list card): use params for link
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow81627 committed Sep 15, 2019
1 parent 27c8d3e commit 49523f5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions components/List/Card.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<nuxt-link
:to="localePath({ path: id })"
:to="localePath({ params: { id } })"
tag="b-card"
no-body
class="overflow-hidden rounded-0"
Expand Down Expand Up @@ -46,12 +46,7 @@ export default {
inheritAttrs: false,
props: {
id: { type: [String, Number], required: true },
name: {
type: String,
default() {
return `Recipe: ${this.id}`;
},
},
name: { type: String, default: null },
description: { type: String, default: null },
image: { type: String, default: null },
layout: { type: String, default: null },
Expand Down

0 comments on commit 49523f5

Please sign in to comment.