|
@@ -6,6 +6,7 @@ Vue.use(Vuex);
|
|
|
const api = {
|
|
|
interface: `/api/train/student`,
|
|
|
noClass: '/api/train/student/seek',
|
|
|
+ bedroom: `/api/train/student/findbedroom`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -35,6 +36,10 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.noClass}`, payload);
|
|
|
return res;
|
|
|
},
|
|
|
+ async bedRoom({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$get(`${api.bedroom}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
|
let toRequest = () => {
|
|
|
let res = [];
|