fix: 🐛 修复在h5 搜索页面中点击刷新再点击回退不生效bug

master
Yer 2023-09-25 15:21:46 +08:00
parent 2aed3b9305
commit fddceb5f36
1 changed files with 9 additions and 1 deletions

View File

@ -121,7 +121,15 @@ export default {
* 回退到上一级
*/
onClickLeft() {
const paths = getCurrentPages();
console.log(paths)
if(paths.length > 1){
uni.navigateBack();
}else{
uni.switchTab({
url:"/pages/tabbar/home/index"
})
}
},
/**