12345678910111213141516171819202122232425262728293031323334353637 |
- <template>
- <div id="app">
- <router-view/>
- </div>
- </template>
- <script>
- import { setStore } from '@/utils/store'
- export default {
- name: 'App',
- created() {
- // 1 考勤页 2 人员管理页
- let type = this.$route.query.type || 1
- if(type) {
- setStore({'name':'type', 'content': type, 'type':''})
- }
- // token
- let token = this.$route.query.token
- if(token) {
- setStore({'name':'token', 'content': token, 'type':''})
- }
- }
- }
- </script>
- <style>
- html, body, #app {
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- width: 100%;
- height: 100%;
- margin: 0px;
- font-family: 'Avenir', Helvetica, Arial, sans-serif;
- font-size: 14px;
- color: #3E3E3E;
- }
- </style>
|