index.vue 678 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view class="">
  3. <Home v-if="store.tabIndex==0"></Home>
  4. <Travels v-else-if="store.tabIndex==1"></Travels>
  5. <Publish v-else-if="store.tabIndex==2"></Publish>
  6. <Chat v-else-if="store.tabIndex==3"></Chat>
  7. <Mine v-else-if="store.tabIndex==4"></Mine>
  8. <Home v-else></Home>
  9. <TabBar></TabBar>
  10. </view>
  11. </template>
  12. <script setup>
  13. import { computed } from 'vue';
  14. import { useStore } from '@/store/index.js'
  15. const store = useStore();
  16. </script>
  17. <style lang="scss">
  18. .page-content{
  19. width:100vw;
  20. height:calc(100vh - 120rpx - env(safe-area-inset-bottom));
  21. border:1rpx solid blue;
  22. box-sizing: border-box;
  23. }
  24. </style>