Browse Source

refactor(components): 修改 AQTabber 组件中的页面跳转方式- 将 uni.navigateTo 替换为 uni.redirectTo,关闭当前页面跳转到新页面

- 添加额外的 console.log 语句以确认跳转完成
master
liutong 10 months ago
parent
commit
a24a5cac46
  1. 6
      components/AQ/AQTabber.vue

6
components/AQ/AQTabber.vue

@ -157,9 +157,13 @@
//tabBar //tabBar
uni.setStorageSync('tabBerIndex', e.index) uni.setStorageSync('tabBerIndex', e.index)
console.log('qqq', e.urlPath) console.log('qqq', e.urlPath)
uni.navigateTo({
//
uni.redirectTo({
url: e.urlPath url: e.urlPath
}) })
console.log('qqq2,执行完了')
}else{ }else{
this.show = true this.show = true
} }

Loading…
Cancel
Save