From c4ebdb4d71332663c05198dcc83dc6ed7ace0b53 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 2 Jan 2026 14:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Profile.vue=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8A=A0=E8=BD=BD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Profile.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Profile.vue b/frontend/src/views/Profile.vue index 70128a2..4226836 100644 --- a/frontend/src/views/Profile.vue +++ b/frontend/src/views/Profile.vue @@ -288,7 +288,8 @@ const passwordRules = { const loadUserInfo = async () => { try { const response = await getUserInfo() - // getUserInfo返回的是Result,需要访问data属性 + // request.get返回的是Result对象,需要访问data属性 + // response结构: { code: 200, data: UserInfo, message: '' } const data = response.data userInfo.value = data userForm.username = userInfo.value.username