From 325b23f05e14d06d697b6cadcbd7779b98e094dc Mon Sep 17 00:00:00 2001 From: 12975 <1297598740@qq.com> Date: Sun, 1 Feb 2026 13:23:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=B9=B6=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=BF=AE=E6=94=B9=E5=92=8C=E9=80=80=E5=87=BA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Profile/Profile.tsx | 54 ++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/src/pages/Profile/Profile.tsx b/src/pages/Profile/Profile.tsx index f206eff..c59e324 100644 --- a/src/pages/Profile/Profile.tsx +++ b/src/pages/Profile/Profile.tsx @@ -55,7 +55,7 @@ export default function Profile() { try { await authService.updatePassword( - passwordForm.oldPassword, + user!.has_password ? passwordForm.oldPassword : '', passwordForm.newPassword ); setPasswordSuccess(true); @@ -150,15 +150,15 @@ export default function Profile() { #{user.id} - +