12345678910111213141516171819202122232425262728293031323334353637 |
- export const state = () => ({
- keywords: {
- fetching: false,
- data: []
- },
- keywordsList: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_KEYWORDS (state) {
- state.keywords.fetching = true
- },
- GET_KEYWORDS_FAILURE (state) {
- state.keywords.fetching = false
- },
- GET_KEYWORDS_SUCCESS (state, result) {
- state.keywords.fetching = false
- state.keywords.data = result
- },
- REQUEST_KEYWORDSLIST (state) {
- state.keywordsList.fetching = true
- },
- GET_KEYWORDSLIST_FAILURE (state) {
- state.keywordsList.fetching = false
- },
- GET_KEYWORDSLIST_SUCCESS (state, result) {
- state.keywordsList.fetching = false
- state.keywordsList.data = result
- },
- RESET_KEYWORDS (state) {
- state.keywords.data = []
- }
- }
|