App.vue 781 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div id="app">
  3. <router-view/>
  4. </div>
  5. </template>
  6. <script>
  7. import { setStore } from '@/utils/store'
  8. export default {
  9. name: 'App',
  10. created() {
  11. // 1 考勤页 2 人员管理页
  12. let type = this.$route.query.type || 1
  13. if(type) {
  14. setStore({'name':'type', 'content': type, 'type':''})
  15. }
  16. // token
  17. let token = this.$route.query.token
  18. if(token) {
  19. setStore({'name':'token', 'content': token, 'type':''})
  20. }
  21. }
  22. }
  23. </script>
  24. <style>
  25. html, body, #app {
  26. -webkit-font-smoothing: antialiased;
  27. -moz-osx-font-smoothing: grayscale;
  28. width: 100%;
  29. height: 100%;
  30. margin: 0px;
  31. font-family: 'Avenir', Helvetica, Arial, sans-serif;
  32. font-size: 14px;
  33. color: #3E3E3E;
  34. }
  35. </style>