12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <script setup lang="ts">
- import '@/assets/style/iconfont.css'
- import { useUserStore } from '@/stores/user'
- import { RouterView } from 'vue-router'
- import { onMounted } from 'vue'
- const useUser = useUserStore()
- useUser.getInfo()
- onMounted(() => {
- window.onresize = () => {
- console.log('window.onresize');
- }
- })
- </script>
- <template>
- <div class="app">
- <RouterView />
- </div>
- </template>
- <style scoped>
- header {
- line-height: 1.5;
- max-height: 100vh;
- }
- .logo {
- display: block;
- margin: 0 auto 2rem;
- }
- nav {
- width: 100%;
- font-size: 12px;
- text-align: center;
- margin-top: 2rem;
- }
- nav a.router-link-exact-active {
- color: var(--color-text);
- }
- nav a.router-link-exact-active:hover {
- background-color: transparent;
- }
- nav a {
- display: inline-block;
- padding: 0 1rem;
- border-left: 1px solid var(--color-border);
- }
- nav a:first-of-type {
- border: 0;
- }
- </style>
|