Commit e38a334b authored by June's avatar June

fixed:自定义导航栏根据分享进入场景值返回首页的问题

parent 2bbc6bae
...@@ -60,7 +60,10 @@ export default { ...@@ -60,7 +60,10 @@ export default {
const { backHome } = app.globalData const { backHome } = app.globalData
if(backHome) { if(backHome) {
uni.switchTab({ uni.switchTab({
url: '/pages/home/index' url: '/pages/home/index',
success: () => {
app.globalData.backHome = false
}
}) })
} else { } else {
uni.navigateBack() uni.navigateBack()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment