diff --git a/src/components/Content/Item.vue b/src/components/Content/Item.vue new file mode 100644 index 0000000..8eadfc3 --- /dev/null +++ b/src/components/Content/Item.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/components/Content/ResultItem.vue b/src/components/Content/ResultItem.vue index 4479c1a..16d4628 100644 --- a/src/components/Content/ResultItem.vue +++ b/src/components/Content/ResultItem.vue @@ -29,12 +29,10 @@ export default { methods: { onclick () { console.log('clicked on result item', this.result) - // this.$router.push({ - // name:`article`, - // params: { alias:this.alias }, - // query: { uuid: this.item.uuid } - // // meta: { uuid:this.item.uuid }, - // }) + this.$router.push({ + name: `item`, + params: { uuid: this.result.uuid } + }) } } } diff --git a/src/router/index.js b/src/router/index.js index 8b3c09b..e209a52 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,6 +2,7 @@ import Vue from 'vue' import Router from 'vue-router' import Home from 'pages/Home' +import Item from 'components/Content/Item' import Corpus from 'pages/Corpus' import Nominum from 'pages/Nominum' import NominumItem from 'components/Content/NominumItem' @@ -18,6 +19,12 @@ const routes = [ path: '/', component: Home }, + { + name: 'item', + path: '/items/:uuid', + component: Item, + props: true + }, { name: 'corpus', path: '/corpus',