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

export default {
  install() {
    if (!store.state.system) {
      store.registerModule(['system'], {
        namespaced: true,
      });
    }
    if (!store.state.system.account) {
      store.registerModule(['system', 'account'], account);
    }
  },
  uninstall() {
    store.unregisterModule(['system', 'account']);
  },
};
