index.ts 536 字节
Newer Older
1 2 3 4 5 6 7 8 9
import Vue from 'vue';
import Vuex from 'vuex';

import { rootstate } from './state';
// import * as actions from './actions';
import * as mutations from './mutations';
import * as getters from './getters';

import viewaction from './modules/view-action'
10
import authresource from './modules/auth-resource'
11 12 13 14 15 16 17 18 19 20 21 22 23

const state = {
    ...rootstate
};

Vue.use(Vuex);

const store = new Vuex.Store({
    state,
    // actions,
    mutations,
    getters,
    modules: {
24
        viewaction,
25
        authresource
26 27 28 29
    },
});

export default store;