Commit f9bb4c97 authored by 李苏's avatar 李苏 💬

修改密码

parent 2fe268f4
...@@ -14,10 +14,6 @@ ...@@ -14,10 +14,6 @@
<el-form-item label="确认密码" prop="confirmPassword"> <el-form-item label="确认密码" prop="confirmPassword">
<el-input v-model="users.confirmPassword" placeholder="请确认新密码" type="password" show-password/> <el-input v-model="users.confirmPassword" placeholder="请确认新密码" type="password" show-password/>
</el-form-item> </el-form-item>
<!-- <el-form-item>
<el-button type="primary" size="mini" @click="submit">保存</el-button>
<el-button type="danger" size="mini" @click="close">关闭</el-button>
</el-form-item> -->
</el-form> </el-form>
</div> </div>
<div class="refooter"> <div class="refooter">
...@@ -164,9 +160,9 @@ export default { ...@@ -164,9 +160,9 @@ export default {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
let params={ let params={
oldPassword: Base64.encode(this.user.oldPassword), oldPassword: Base64.encode(this.users.oldPassword),
newPassword: Base64.encode(this.user.newPassword), newPassword: Base64.encode(this.users.newPassword),
newPasswordConfirm: Base64.encode(this.user.confirmPassword) newPasswordConfirm: Base64.encode(this.users.confirmPassword)
} }
updatePassword(params).then(res=>{ updatePassword(params).then(res=>{
if(res.success){ if(res.success){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment