App.vue 447 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <router-view></router-view>
  3. </template>
  4. <script>
  5. import { useStore } from 'vuex';
  6. export default{
  7. setup(){
  8. const store=useStore();
  9. //console.log(store.state.user);
  10. },
  11. created(){
  12. this.getTabBarStatus();
  13. },
  14. data(){
  15. return {
  16. active:'home',
  17. showStatus:true,
  18. }
  19. },
  20. methods:{
  21. getTabBarStatus(){
  22. this.showStatus=this.$route.meta.isShowTarBar;
  23. },
  24. }
  25. };
  26. </script>
  27. <style>
  28. @import '~normalize.css';
  29. </style>