traxxx/assets/js/ui/actions.js

21 lines
434 B
JavaScript

// import { get } from '../api';
function initUiActions(_store, _router) {
function setFilter({ commit }, filter) {
commit('setFilter', filter);
localStorage.setItem('filter', filter);
}
function setRange({ commit }, range) {
commit('setRange', range);
localStorage.setItem('range', range);
}
return {
setFilter,
setRange,
};
}
export default initUiActions;