App.vue
694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!--
* @Description:
* @Author: huyue
* @Date: 2023-08-31 11:35:41
* @LastEditors: huyue
* @LastEditTime: 2023-10-26 14:29:54
-->
<template>
<!-- <nav>
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</nav> -->
<router-view class="warp-content" />
</template>
<script lang="ts" setup>
import { onMounted } from 'vue'
onMounted(() => {
document.body.style.setProperty('--el-color-primary', '#5850FF')
})
</script>
<style lang="scss">
* {
padding: 0;
margin: 0;
}
html,
body {
height: 100%;
// min-height: 100%;
// min-height: 100%;
}
.warp-content {
height: 100%;
}
#app {
height: 100%;
// min-height: 100%;
}
</style>