Created
August 28, 2019 15:50
-
-
Save nanotroy/37450b4a00c6c7b7614dff75c3f20a17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
export default new Vuex.Store({ | |
state: { | |
searchResults: [] | |
}, | |
mutations: { | |
setSearchResults(state, payload) { | |
state.searchResults = payload; | |
} | |
}, | |
actions: { | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment