feat: 优化代码
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user