This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
zhangzl
/
nsgk_mobile
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
2 Commits
feb579f48a
...
986c1d5c78
Author
SHA1
Message
Date
sunfengxiang
986c1d5c78
Merge branch 'master' of
http://116.255.223.226:3000/zhangzl/nsgk_mobile
2 years ago
sunfengxiang
4ef26bbacb
修改密码
2 years ago
2 changed files
with
7 additions
and
3 deletions
Split View
Diff Options
Show Stats
+6
-2
src/api/user/index.js
+1
-1
src/views/user/accountSetting/passWordInformation/index.vue
+ 6
- 2
src/api/user/index.js
View File
@@ -26,11 +26,15 @@ export function userUpdate(query){
}
//更新密码
export function passWordUpdate(query){
export function passWordUpdate(oldPassword, newPassword){
const data = {
oldPassword,
newPassword
}
return request({
url: '/system/user/profile/updatePwd',
method: 'post',
data: query
params:
data
})
}
+ 1
- 1
src/views/user/accountSetting/passWordInformation/index.vue
View File
@@ -50,7 +50,7 @@ import {Dialog} from "vant";
});
},
submitBank(){
passWordUpdate(this.form).then(response => {
passWordUpdate(this.form
.oldPassWord, this.form.newPassWord
).then(response => {
if (response.code == 200){
Dialog.confirm({
title: '系统提示',
Write
Preview
Loading…
Cancel
Save