diff --git a/src/App.vue b/src/App.vue index 572b45c..294c10c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,6 +37,10 @@ function fetchSuccess (data) { loaded: true } }) + dispatch({ + type: 'SPELLS_CREATE_INDEX', + data + }) } function fetchFailure (reason) { @@ -63,9 +67,7 @@ export default { }, mounted () { if (LocalStorage.has('chosen')) { - dispatch({ - type: 'LOAD_LOCAL_CHOSEN' - }) + dispatch({type: 'LOAD_LOCAL_CHOSEN'}) } if (!this.state.spells.loaded) { diff --git a/src/components/Index.vue b/src/components/Index.vue index afb7395..1c8e6ee 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -1,8 +1,8 @@