From 58e80feb8a2deff3b3e96cff82f11d5cbd8b4df1 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 25 Mar 2024 03:05:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E9=85=8D=E7=BD=AE=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=AE=B1tabbar=20(=E6=9A=82=E6=97=B6=E5=BD=B1=E8=97=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/componments/TabbarCom/index.jsx | 10 ++++++++-- src/pages/my/index.jsx | 11 ++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/componments/TabbarCom/index.jsx b/src/componments/TabbarCom/index.jsx index f15bec8..96121e2 100644 --- a/src/componments/TabbarCom/index.jsx +++ b/src/componments/TabbarCom/index.jsx @@ -11,7 +11,7 @@ const TabbarCom = (props) => { { @@ -20,7 +20,13 @@ const TabbarCom = (props) => { Taro.redirectTo({ url: "/pages/index/index", }); - } else { + } + // else if (current === 1) { + // Taro.redirectTo({ + // url: "/pages/index/index", + // }); + // } + else { Taro.redirectTo({ url: "/pages/my/index", }); diff --git a/src/pages/my/index.jsx b/src/pages/my/index.jsx index 8c3dd66..02a058c 100644 --- a/src/pages/my/index.jsx +++ b/src/pages/my/index.jsx @@ -44,7 +44,9 @@ const my = () => { image={localuserInfo?.smallhead ?? touxiang} > - {localuserInfo?.nickname??"星球新居民"} + + {localuserInfo?.nickname ?? "星球新居民"} + {/* */} @@ -68,6 +70,13 @@ const my = () => { }); }} /> +