index.vue 581 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view v-if="token" class="page-container">
  3. <topPanel />
  4. <apps />
  5. <schedule />
  6. </view>
  7. </template>
  8. <script>
  9. import {
  10. mapState
  11. } from 'vuex'
  12. import topPanel from './components/top-panel.vue';
  13. import apps from './components/apps.vue';
  14. import schedule from './components/schedule.vue';
  15. export default {
  16. components: {
  17. topPanel,
  18. apps,
  19. schedule,
  20. },
  21. computed: {
  22. ...mapState({
  23. token: state => state.user.token,
  24. })
  25. },
  26. }
  27. </script>
  28. <style scoped lang='scss'>
  29. .page-container {
  30. /* background: white;
  31. padding: 0 32rpx; */
  32. }
  33. </style>