Procházet zdrojové kódy

bug fix in history nav

Bachir Soussi Chiadmi před 3 roky
rodič
revize
52a9c4a3e5

+ 2 - 2
src/components/Content/HistoryItem.vue

@@ -2,7 +2,7 @@
   <article class="result item">
     <h1>
       <a
-        :href="'/edition/'+item.textId+'/'+item.uuid"
+        :href="'/edition/'+item.id+'/'+item.textid"
         @click.prevent="onclick"
         @keyup.enter="onclick"
         v-html="item.title"
@@ -10,7 +10,7 @@
     </h1>
     <h2>
       <a
-        :href="'/edition/'+item.textId+'/'+item.uuid"
+        :href="'/edition/'+item.id+'/'+item.textid"
         @click.prevent="onclick"
         @keyup.enter="onclick"
         v-html="item.editionTitle"

+ 2 - 2
src/store/modules/history.js

@@ -43,8 +43,8 @@ export default {
       router.push({
         name: `editiontext`,
         params: {
-          id: item.textId,
-          textid: item.uuid
+          id: item.id,
+          textid: item.textid
         }
       })
     }