company.js 623 B

1234567891011121314151617181920212223242526
  1. export default {
  2. state: {
  3. companyConfig: {
  4. sagacareProjectId: 'Pj1101080259' // 测试阶段先给一个默认值
  5. }
  6. },
  7. mutations: {
  8. setCompanyConfig(state, configInfo) {
  9. state.companyConfig = configInfo
  10. },
  11. clearCompanyConfig(state) {
  12. // state.companyConfig = null;
  13. state.companyConfig = {
  14. sagacareProjectId: 'Pj1101080259' // 测试阶段先给一个默认值
  15. }
  16. }
  17. },
  18. actions: {
  19. setCompanyConfig({ commit }, data) {
  20. commit('setCompanyConfig', data)
  21. },
  22. clearCompanyConfig({ commit }) {
  23. commit('clearCompanyConfig')
  24. }
  25. }
  26. }