From 2234c2304a91e4c12867609d78cb57363daa60ac Mon Sep 17 00:00:00 2001 From: Joe Wroten Date: Thu, 18 May 2017 11:54:53 -0500 Subject: [PATCH] Pagination > infinite scroll, page routing --- src/components/Spellitem.vue | 2 +- src/components/Spelllist.vue | 49 +++++++++++++++++++++++++----------- src/router.js | 1 + src/store.js | 2 +- 4 files changed, 38 insertions(+), 16 deletions(-) diff --git a/src/components/Spellitem.vue b/src/components/Spellitem.vue index ce98e82..a530434 100644 --- a/src/components/Spellitem.vue +++ b/src/components/Spellitem.vue @@ -61,7 +61,7 @@ export default { ], methods: { openSpell (event) { - console.log(this.spell.name) + this.$router.push('/spell/' + this.spell.name) }, toggle (want) { dispatch({ diff --git a/src/components/Spelllist.vue b/src/components/Spelllist.vue index 49ec066..041981c 100644 --- a/src/components/Spelllist.vue +++ b/src/components/Spelllist.vue @@ -1,21 +1,23 @@