From 2c161f902a4cff07146a47c670ef3701e03eab67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Wed, 13 Nov 2024 14:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/myUser/index.js | 6 ++--- .../NavBar/components/NavbarRight.vue | 27 ++++++++++++++++++- .../NavBar/components/NavbarRight2.vue | 26 +++++++++++++++++- src/views/system/user/index.vue | 5 ++++ 4 files changed, 59 insertions(+), 5 deletions(-) diff --git a/src/api/myUser/index.js b/src/api/myUser/index.js index faef55c..64a08c7 100644 --- a/src/api/myUser/index.js +++ b/src/api/myUser/index.js @@ -23,15 +23,15 @@ const deleteUser = (id) => { method: "delete" }); } -//更新用户信息 +//更新用户密码 const updatePassword = (id, data) => { return request({ - url: `/users/${id}/auth`, + url: `/users/${id}/password`, method: "put", data: data }); } -//更新用户密码 +//更新用户信息 const updateAuth = (id, data) => { return request({ url: `/users/${id}/auth`, diff --git a/src/layout/components/NavBar/components/NavbarRight.vue b/src/layout/components/NavBar/components/NavbarRight.vue index d706634..4d75c6c 100644 --- a/src/layout/components/NavBar/components/NavbarRight.vue +++ b/src/layout/components/NavBar/components/NavbarRight.vue @@ -30,7 +30,7 @@