App.vue
704 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
40
41
<template>
<!-- <div id="app">
<h1>Vue应用已启动</h1>
<p>如果您能看到这个页面,说明Vue应用正常运行</p>
<p>当前时间: {{ currentTime }}</p>
</div> -->
<router-view/>
</template>
<script setup lang="ts">
import { onMounted, ref } from 'vue'
const currentTime = ref('')
onMounted(() => {
console.log('Apple经销商ERP系统前端应用已启动')
currentTime.value = new Date().toLocaleString()
})
</script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
overflow-x: hidden;
}
#app {
height: 100vh;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
</style>