|
@@ -6,15 +6,21 @@ const api = {
|
|
login: `/login`,
|
|
login: `/login`,
|
|
logout: `/logout`,
|
|
logout: `/logout`,
|
|
pwd: `/pwd`,
|
|
pwd: `/pwd`,
|
|
|
|
+ resetPwd: `/resetPwd`,
|
|
tokenView: `/tokenView`,
|
|
tokenView: `/tokenView`,
|
|
};
|
|
};
|
|
const state = () => ({});
|
|
const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
|
|
|
|
const actions = {
|
|
const actions = {
|
|
|
|
+ // 修改密码
|
|
|
|
+ async pwd({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.pwd}`, payload);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
// 重置密码
|
|
// 重置密码
|
|
async resetPwd({ commit }, payload) {
|
|
async resetPwd({ commit }, payload) {
|
|
- const res = await this.$axios.$post(`${api.pwd}`, payload);
|
|
|
|
|
|
+ const res = await this.$axios.$post(`${api.resetPwd}`, payload);
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
async login({ commit }, payload) {
|
|
async login({ commit }, payload) {
|