提交 9d58445d 编写于 作者: KK's avatar KK

修改密码——fix

上级 c3e78e9a
......@@ -129,8 +129,8 @@ export default class AppUpdatePassword extends Vue {
* @memberof AppUpdatePassword
*/
public updatePwd(){
const put: Promise<any> = this.entityService.changPassword(null,{oldPwd:this.oldPwd,newPwd:this.newPwd});
put.then((response:any) =>{
const post: Promise<any> = this.entityService.changPassword(null,{oldPwd:this.oldPwd,newPwd:this.newPwd});
post.then((response:any) =>{
if (response && response.status === 200) {
this.$emit("close");
}
......
......@@ -939,7 +939,7 @@ export default class EntityService {
* @param isloading
*/
public async changPassword(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().put(`v7/changepwd`,data,isloading);
return Http.getInstance().post(`v7/changepwd`,data,isloading);
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册