/** * 项目、系统相关 * */ export default { namespaced: true, state: { lastSystemId: 1, lastRecordType: "practice" }, mutations: { SET_SYSTEM_ID: (state, systemId) => { state.lastSystemId = systemId; }, SET_RECORD: (state, type) => { state.lastRecordType = type; } }, actions: { setSystemId({ state, commit }, systemId) { commit("SET_SYSTEM_ID", systemId); }, setRecord({ state, commit }, type) { commit("SET_RECORD", type); } } };