From d33ef7c5601a9628efbce5b6874e8b2357729085 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 13 Aug 2025 10:14:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=8F=96=E6=B6=88=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E8=BF=94=E5=9B=9E=E9=BB=98=E8=AE=A4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/account/ChangePassword.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/account/ChangePassword.jsx b/src/views/account/ChangePassword.jsx index f6eea40..ddc6386 100644 --- a/src/views/account/ChangePassword.jsx +++ b/src/views/account/ChangePassword.jsx @@ -9,7 +9,10 @@ function ChangePassword() { const { t } = useTranslation() const navigate = useNavigate() - const changeUserPassword = useAuthStore((state) => state.changeUserPassword) + const [changeUserPassword, defaultRoute] = useAuthStore((state) => [ + state.changeUserPassword, + state.defaultRoute, + ]) const { notification } = App.useApp() const [form] = Form.useForm() @@ -94,7 +97,7 @@ function ChangePassword() { -