nav is going on in header menu
This commit is contained in:
@@ -10,7 +10,13 @@
|
||||
/>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="text-quantity" v-html="item.textsQuantity" />
|
||||
<section>
|
||||
<p class="author">{{ item.author }}</p>
|
||||
<p class="date">{{ item.date }}</p>
|
||||
<p class="editions-quantity">{{ item.editionsQuantity }}</p>
|
||||
<p class="text-quantity">{{ item.textsQuantity }}</p>
|
||||
<div class="edition" v-html="item.editions" />
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
@@ -29,12 +35,10 @@ export default {
|
||||
methods: {
|
||||
onclick () {
|
||||
console.log('clicked on corpus item', this.item)
|
||||
// this.$router.push({
|
||||
// name:`article`,
|
||||
// params: { alias:this.alias },
|
||||
// query: { uuid: this.item.uuid }
|
||||
// // meta: { uuid:this.item.uuid },
|
||||
// })
|
||||
this.$router.push({
|
||||
name: `corpus`,
|
||||
params: { id: this.item.uuid }
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
v-html="item.title"
|
||||
/>
|
||||
</h1>
|
||||
<p>{{ item.type }}</p>
|
||||
</header>
|
||||
</article>
|
||||
</template>
|
||||
@@ -28,10 +29,11 @@ export default {
|
||||
methods: {
|
||||
onclick () {
|
||||
console.log('clicked on locorum item', this.item)
|
||||
// this.$router.push({
|
||||
// name: `locorumItem`,
|
||||
// query: { id: this.item.uuid }
|
||||
// })
|
||||
this.$router.push({
|
||||
name: `locorum`,
|
||||
params: { id: this.item.uuid }
|
||||
// query: { id: this.item.uuid }
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@ export default {
|
||||
onclick () {
|
||||
console.log('clicked on nominum item', this.item)
|
||||
this.$router.push({
|
||||
name: `nominumItem`,
|
||||
query: { id: this.item.uuid }
|
||||
name: `nominum`,
|
||||
params: { id: this.item.uuid }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,12 +2,18 @@
|
||||
<article class="operum item">
|
||||
<header>
|
||||
<h1>
|
||||
|
||||
<a
|
||||
v-if="item.uuid"
|
||||
:href="item.url"
|
||||
@click.prevent="onclick"
|
||||
@keyup.enter="onclick"
|
||||
v-html="item.title"
|
||||
/>
|
||||
>
|
||||
{{ item.title }}
|
||||
</a>
|
||||
<span v-else class="red">
|
||||
{{ item.title }}
|
||||
</span>
|
||||
</h1>
|
||||
</header>
|
||||
</article>
|
||||
@@ -28,10 +34,14 @@ export default {
|
||||
methods: {
|
||||
onclick () {
|
||||
console.log('clicked on Operum item', this.item)
|
||||
this.$router.push({
|
||||
name: `operuumItem`,
|
||||
query: { id: this.item.uuid }
|
||||
})
|
||||
if (this.item.uuid) {
|
||||
this.$router.push({
|
||||
name: `operum`,
|
||||
params: { id: this.item.uuid }
|
||||
})
|
||||
} else {
|
||||
console.warn('no uuid', this.item)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user