feat: 优化代码

This commit is contained in:
hackrobot
2024-03-19 21:27:20 +08:00
parent 448db40b87
commit f2f8056544
3 changed files with 2 additions and 60 deletions

View File

@@ -15,12 +15,12 @@ const TabbarCom = (props) => {
{ title: "我的", iconType: "user" }, //, text: "100", max: 99
]}
onClick={(current) => {
setActive(current)
setActive(current);
if (current === 0) {
Taro.redirectTo({
url: "/pages/index/index",
});
}else{
} else {
Taro.redirectTo({
url: "/pages/my/index",
});