|
@@ -33,6 +33,16 @@ const actions = {
|
|
const res = await this.$axios.$delete(`${api.test}/${payload}`);
|
|
const res = await this.$axios.$delete(`${api.test}/${payload}`);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ // 重置密码
|
|
|
|
+ async resetPwd({ commit }, payload) {
|
|
|
|
+ const id = _.get(payload, 'id', _.get(payload, '_id'));
|
|
|
|
+ const res = await this.$axios.$post(`${api.test}/resetPwd/${id}`, payload);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
|
|
+ async login({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.test}/login`, payload);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
};
|
|
};
|
|
export default {
|
|
export default {
|
|
namespaced: true,
|
|
namespaced: true,
|