diff options
author | Mateja <mail@matejamaric.com> | 2021-03-14 14:47:10 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-03-14 14:47:10 +0100 |
commit | 95d863c82ad630d46b2195ef04d62d45b18e68a7 (patch) | |
tree | de36ef8891d944138653203195f0c253d0420bc4 /resources/js/store.js | |
parent | c5209f1a698113f48d7435c5363b11e925d16e23 (diff) | |
download | yota-laravel-95d863c82ad630d46b2195ef04d62d45b18e68a7.tar.gz yota-laravel-95d863c82ad630d46b2195ef04d62d45b18e68a7.zip |
Load special signs using Axios.
Diffstat (limited to 'resources/js/store.js')
-rw-r--r-- | resources/js/store.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/js/store.js b/resources/js/store.js index 461b34e..6ec3711 100644 --- a/resources/js/store.js +++ b/resources/js/store.js @@ -29,8 +29,11 @@ export default new Vuex.Store({ context.commit('setSelectedSign', sign); }, fillSigns(context) { - let data = ['test', 'TEST', 'TeSt']; - context.commit('fillSigns', data); + axios.get('/special-calls/show').then(response => { + context.commit('fillSigns', response.data); + }).catch(error => { + console.log(error); + }); } } }); |