|
@@ -86,6 +86,16 @@
|
|
|
console.log('hideTabBar success: ', res)
|
|
|
},
|
|
|
})
|
|
|
+ const routes = getCurrentPages()
|
|
|
+ const curRoute = routes[routes.length - 1].route
|
|
|
+ for (let i = 0; i < tabBar.list.length; i++) {
|
|
|
+ const { pagePath } = tabBar.list[i]
|
|
|
+ if (pagePath === curRoute) {
|
|
|
+ tabbarStore.setCurIdx(i)
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// #endif
|
|
|
})
|
|
|
</script>
|