You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
344 B
15 lines
344 B
import { createStore } from 'vuex';
|
|
import user from './user';
|
|
import plugin from './plugin';
|
|
|
|
export default createStore({
|
|
modules: { user, plugin },
|
|
state: { menu: { show: true, collapse: false } },
|
|
getters: {},
|
|
mutations: {
|
|
toggleCollapse(state) {
|
|
state.menu.collapse = !state.menu.collapse;
|
|
},
|
|
},
|
|
actions: {},
|
|
});
|
|
|