模块化
const state = {
eventstatus:''
}
const mutations = {
STORAGE_EVENT: (state, view) => {
state.eventstatus = view
}
}
const actions = {
STORAGE_EVENT: (context, value) => {
context.commit('STORAGE_EVENT',value)
}
}
export default {
state,
mutations,
actions
}
this.$store.dispatch('STORAGE_EVENT',this.eventparams)
剩余 模块化 与 快捷扩展补充