From 93c09e6cf8495aa25abeb83003e9210aa1c979d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Fri, 31 Mar 2023 15:16:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8F=8A=E9=87=8D=E7=BD=AE=E5=AF=86=E7=A0=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/api/wms-auth.js | 8 ++++---- fe/PC/src/views/profileuser/resetPwd.vue | 3 +-- fe/PC/src/views/systemManage/userManage.vue | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/fe/PC/src/api/wms-auth.js b/fe/PC/src/api/wms-auth.js index e93410557..afa0b62a0 100644 --- a/fe/PC/src/api/wms-auth.js +++ b/fe/PC/src/api/wms-auth.js @@ -87,8 +87,8 @@ export function getPageList(data) { //重置密码功能 | 用户信息维护 export function putpassword(id) { return request({ - url: baseURL + '/account/reset-password/' + id, - method: 'put' + url: baseURL + '/identity/users/reset-password/' + id, + method: 'post' }) } @@ -194,9 +194,9 @@ export function putLoginUserInfo(data) { }) } //修改登录用户的密码-强密码规则 -export function postLoginUserInfo(data) { +export function postLoginUserInfo(data, id) { return request({ - url: baseURL + '/identity/my-profile/change-password', + url: baseURL + '/identity/users/change-password/' + id, method: 'post', data }) diff --git a/fe/PC/src/views/profileuser/resetPwd.vue b/fe/PC/src/views/profileuser/resetPwd.vue index ac1f126da..f88d0d9ab 100644 --- a/fe/PC/src/views/profileuser/resetPwd.vue +++ b/fe/PC/src/views/profileuser/resetPwd.vue @@ -41,7 +41,6 @@ export default { } }; return { - test: "1test", user: { oldPassword: undefined, newPassword: undefined, @@ -75,7 +74,7 @@ export default { postLoginUserInfo({ currentPassword: this.user.oldPassword, newPassword: this.user.newPassword, - }) + }, this.$store.getters.name.id) .then((response) => { this.$notify({ title: "成功", diff --git a/fe/PC/src/views/systemManage/userManage.vue b/fe/PC/src/views/systemManage/userManage.vue index bd7b40931..1dd3da8e2 100644 --- a/fe/PC/src/views/systemManage/userManage.vue +++ b/fe/PC/src/views/systemManage/userManage.vue @@ -695,7 +695,7 @@ export default { putpassword(row.id).then((response) => { this.$notify({ title: "成功", - message: "重置成功, 密码是: 123456", + message: "重置成功, 密码是: 000000", type: "success", duration: 2000, });