修改个人页的跳转

This commit is contained in:
张成
2025-09-02 10:00:57 +08:00
parent ed9147558b
commit 0a4bce3f9c
8 changed files with 19 additions and 13 deletions

View File

@@ -34,8 +34,13 @@ const GuideBar = (props) => {
if (code === currentPage) {
return
}
let url = `/pages/${code}/index`
if (code === 'personal') {
url = 'pages/userInfo/myself/index'
}
Taro.navigateTo({
url: `/pages/${code}/index`,
url: url,
}).then(() => {
Taro.pageScrollTo({
scrollTop: 0,