UNPKG

hae

Version:

Mobile web UI based on Vux

21 lines (18 loc) 363 B
import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const state = { isLoading: false, direction: 'forward' } export default new Vuex.Store({ state, mutations: { UPDATE_LOADING (state, status) { state.isLoading = status }, UPDATE_DIRECTION (state, direction) { state.direction = direction } } })