123456789101112131415161718192021 |
- <template>
- <layout-page>招聘会</layout-page>
- </template>
- <script setup>
- import layoutPage from '@/layout'
- import { onShow } from '@dcloudio/uni-app'
-
- // 设置自定义tabbar选中值
- onShow(() => {
- const currentPage = getCurrentPages()[0]; // 获取当前页面实例
- const currentTabBar = currentPage?.getTabBar?.();
-
- // 设置当前tab页的下标index
- currentTabBar?.setData({ selected: 3 });
- })
- </script>
- <style scoped lang="scss">
- </style>
|