parent
1343d0266e
commit
836e147e8b
@ -0,0 +1,26 @@
|
||||
|
||||
const state = {
|
||||
noLoading: false,
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
SET_LOADING: (state, loading) => {
|
||||
state.noLoading = loading
|
||||
},
|
||||
}
|
||||
|
||||
const actions = {
|
||||
handler({ commit }, loading){
|
||||
return new Promise((resolve, reject) => {
|
||||
commit('SET_LOADING', loading)
|
||||
resolve()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
actions,
|
||||
mutations
|
||||
}
|
Loading…
Reference in new issue