import store from '@/store/index';
import repairProject from './repairProject';

export default {
  install() {
    if (store.state.baseData && store.state.baseData.repairProject) return;
    if (!store.state.baseData) {
      store.registerModule(['baseData'], {
        namespaced: true,
      });
    }
    store.registerModule(['baseData', 'repairProject'], repairProject);
  },
  uninstall() {
    store.unregisterModule(['baseData', 'repairProject']);
  },
};
