From 2c69da46e518c2a1f203942961701afd2b03241e Mon Sep 17 00:00:00 2001 From: Peanut Date: Mon, 15 Jun 2026 12:13:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E6=A1=A3=E6=A1=88=E6=80=A7=E5=88=AB=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=90=8E=E5=9C=A8=E6=88=91=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=88=E4=B8=AD=E8=8B=B1=E6=96=87=E6=A0=BC=E5=BC=8F=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-program/src/pages/main/MineView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mini-program/src/pages/main/MineView.vue b/mini-program/src/pages/main/MineView.vue index 3ba902e..94ded82 100644 --- a/mini-program/src/pages/main/MineView.vue +++ b/mini-program/src/pages/main/MineView.vue @@ -165,8 +165,9 @@ const harmonyPercent = computed(() => { }) const genderText = computed(() => { - const map = { male: '男', female: '女', other: '其他' } - return map[profile.value.gender] || null + // 兼容中文值(编辑页保存格式)和英文 key + const map = { male: '男', female: '女', other: '其他', '男': '男', '女': '女', '不透露': '不透露' } + return map[profile.value.gender] || profile.value.gender || null }) const age = computed(() => {