浏览代码

:bug: fixing breadcrumb link in card to point to exhibition and event sort-by | #114

tags/0.9.0
J 4 年前
父节点
当前提交
c5c927c95f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      vue-theme/src/components/card.vue

+ 3
- 1
vue-theme/src/components/card.vue 查看文件

1
 <template lang="pug">
1
 <template lang="pug">
2
 .card(v-if="content")
2
 .card(v-if="content")
3
     header
3
     header
4
-        router-link(v-if="!hideType" :to="`/${type}`")
4
+        router-link(v-if="!hideType && ['event','exhibition'].includes(type)" :to="`/${type}/by-current-and-upcoming`")
5
+            p.t-up {{type}}
6
+        router-link(v-else-if="!hideType" :to="`/${type}`")
5
             p.t-up {{type}}
7
             p.t-up {{type}}
6
     article.card--info(:class="{ 'wide': wide }")
8
     article.card--info(:class="{ 'wide': wide }")
7
         router-link(:to="`/${type}/${content.slug}`")
9
         router-link(:to="`/${type}/${content.slug}`")

正在加载...
取消
保存