// import { getHospital } from '@/service';

export const state = () => ({
  hospitals: []
});

export const mutations = {
  add (state, { data }) {
    console.log('mutations add hospital: ', data);
    
    state.hospitals = data;
  }
};

export const actions = {
  async searchHospital({ commit }, { name }) {
    // getHospital({ name }).then(res => {
    //   commit('add', res);
    //   return res;
    // });
  }
};
