1234567891011121314151617181920212223 |
- const listsStore = {
- state: {
- searchVal: '',
- keyword:''
- },
- mutations: {
- setSearchVal: (state, searchVal) => {
- state.searchVal = searchVal
- },
- setKeyword: (state, keyword) => {
- state.keyword = keyword
- },
- },
- actions: {
- saveSearchVal: ({ commit, state }, searchVal) => {
- commit('setSearchVal', searchVal)
- },
- saveKeyword: ({ commit, state }, keyword) => {
- commit('setKeyword', keyword)
- },
- }
- }
- export default listsStore;
|