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 = () => { }); }} /> +