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

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