diff --git a/src/components/Index.vue b/src/components/Index.vue index effad43..e355fb5 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -13,9 +13,9 @@ diff --git a/src/store.js b/src/store.js index 0553049..81c3ac3 100644 --- a/src/store.js +++ b/src/store.js @@ -4,3 +4,16 @@ export let state = { data: [] } } + +export function dispatch (action) { + switch (action.type) { + case 'SPELLS_RESOLVED': + state.spells = action.data + break + } +} + +export default { + state, + dispatch +}