From 2301661fb5f2934ab156b5866d2f242b3beb336c Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 21 Jan 2026 16:53:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=B8=8B=E6=8B=89=E5=88=97=E8=A1=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/custom-navigation-bar/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/custom-navigation-bar/index.vue b/src/components/custom-navigation-bar/index.vue index 451459f..4b8585a 100644 --- a/src/components/custom-navigation-bar/index.vue +++ b/src/components/custom-navigation-bar/index.vue @@ -79,14 +79,20 @@ watchEffect(() => { function getParentList() { list_user_parent().then((res: any) => { if (res.code == 200) { + const originalUserId = Taro.getStorageSync("UserId"); + const originalUserName = Taro.getStorageSync("UserName"); + const arr = [ { - userId: Taro.getStorageSync("UserId"), - userName: Taro.getStorageSync("UserName"), + userId: originalUserId, + userName: `${originalUserName}(主账号)`, }, ]; res.data.forEach((r) => { - arr.push(r); + arr.push({ + userId: r.userId, + userName: `${r.userName}(关联账号)`, + }); }); parentList.value = arr; }