feature:实现角色配置

This commit is contained in:
Erlei Chen
2025-03-27 22:14:52 +08:00
49 changed files with 1736 additions and 618 deletions
+22 -1
View File
@@ -18,7 +18,8 @@ export default {
// this.login(loginForm, callback)
// })
}).send()
}, // 获取验证码
},
// 获取验证码
getCaptcha(uuid, callback) {
RequestService.sendRequest()
@@ -98,4 +99,24 @@ export default {
// })
}).send()
},
// 修改用户密码
changePassword(oldPassword, newPassword, successCallback, errorCallback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/user/change-password`) // 修改URL
.method('PUT') // 修改方法为PUT
.data({
old_password: oldPassword, // 修改参数名
new_password: newPassword // 修改参数名
})
.success((res) => {
RequestService.clearRequestTime();
successCallback(res);
})
.fail((error) => {
// RequestService.reAjaxFun(() => {
// this.changePassword(oldPassword, newPassword, successCallback, errorCallback);
// });
})
.send();
},
}