浏览代码

add dynamic tags to news details page

Olivier Massot 1 年之前
父节点
当前提交
438a8cfc55
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      components/News/Details.vue

+ 3 - 1
components/News/Details.vue

@@ -70,7 +70,9 @@
 
           <v-row class="d-flex justify-space-between mb-8 center-90">
             <p class="key-word mt-3">
-              ROCK CONCERT FESTIVAL
+              <span v-for="tag in newsItem.tags" class="mr-2">
+                {{ tag.name }}
+              </span>
             </p>
 
             <CommonShare />