//列表页 <template> <view class="list"> <TabBar></TabBar> 列表 </view> </template> <script> import TabBar from '@/components/tabBar/tabBar.vue'; export default { components: { TabBar, }, data() { return { } }, onShow() { let pages = getCurrentPages(); const curPage = pages[pages.length - 1]; this.currentPagePath = curPage.route; uni.setStorageSync('currentPagePath', this.currentPagePath); }, methods: { } } </script> <style lang="scss" scoped> .list { padding: 40rpx; padding-bottom: 200rpx; } </style>