index.vue 600 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div class="dashboard-container padding-20">
  3. 欢迎来到使宁农业管理系统!
  4. </div>
  5. </template>
  6. <script>
  7. import { getToken } from '@/utils/auth'
  8. export default {
  9. name: 'Dashboard',
  10. data() {
  11. return {
  12. step: 0
  13. }
  14. },
  15. methods: {
  16. async getUserInfo() {
  17. const data = await this.$fetch('/userGetInfo', { token: getToken() }, 'get')
  18. }
  19. },
  20. mounted() {
  21. // this.getUserInfo()
  22. }
  23. }
  24. </script>
  25. <style lang="scss" scoped>
  26. .dashboard {
  27. &-container {
  28. margin: 30px;
  29. }
  30. &-text {
  31. font-size: 30px;
  32. line-height: 46px;
  33. }
  34. }
  35. </style>