Gary Gu
8 days ago 36e044280298d6f6b37b1295f9eba25584ef66a2
src/store/modules/common.js
@@ -12,6 +12,7 @@
        code: null, //用户信息
        token: null, //token
        projectEndDate: null, //项目结束日期
    bindId: null,
    }),
    mutations: {
@@ -24,6 +25,9 @@
        setProjectEndDate(state, data) {
            state.projectEndDate = data;
        },
    setBindId(state, data) {
      state.bindId = data;
    },
    },
    actions: {
        setCode(context, data) {
@@ -35,10 +39,14 @@
        setProjectEndDate(context, data) {
            context.commit("setProjectEndDate", data);
        },
    updateBindId({ commit }, data) {
      commit("setBindId", data);
    },
    },
    getters: {
        code: (state) => state.code,
        token: (state) => state.token,
        projectEndDate: (state) => state.projectEndDate,
    bindId: (state) => state.bindId,
    },
};