myERP/src/views/home/index.vue

44 lines
689 B
Vue
Raw Normal View History

2025-06-14 10:30:10 +08:00
<template>
<div class="pageBox">
<div class="oneBox">
<h3>今天也是充满希望的一天</h3>
</div>
</div>
</template>
<script>
import { onMounted, reactive, toRefs } from "vue"
import { get } from "@/api/request"
export default {
setup() {
const data = reactive({
numTotal: {}
})
const fetchData = () => {
// get(`/api/admin/home`).then((res) => {
// data.numTotal = res.data
// })
}
onMounted(() => {
fetchData()
})
return {
...toRefs(data),
fetchData
}
}
}
</script>
<style lang="scss" scoped>
.oneBox{
padding: 20px;
width: 100%;
text-align: center;
}
</style>