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; }