Blame view

frontend/manage/src/store/tenant.js 385 Bytes
8d73e917   陈威   初始化提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const state = {
    tenantId: null
};

const getters = {

};

const actions = {
    actionTenantId({ commit, state }, tenantId) {
        commit("mutationTenantId", tenantId);
    },

};

const mutations = {
    mutationTenantId(state, tenantId) {
        state.tenantId = tenantId;
    }
};

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
};