自动路由-bug版

This commit is contained in:
2025-08-21 11:19:59 +08:00
parent 22ca45510b
commit 36950ab424
27 changed files with 677 additions and 133 deletions

53
src/Index.vue Normal file
View File

@ -0,0 +1,53 @@
<template>
<d-layout>
<d-header class="dheader-1">
<menu-h />
</d-header>
<d-content class="dcontent-1">
<router-view />
</d-content>
<d-footer v-show="route.path == '/home'" class="dfooter-1">
<div class="beian" ref="footer">
<a class="text-primary" href="https://beian.miit.gov.cn" target="_blank">皖ICP备2021017362号-1</a>
<a class="swag text-primary" target="_blank" href="https://www.hxyouzi.com/swag">api文档</a>
<!-- <div class="flex text-[#409eff] text-[12px] ml-[20px]">
<div>今日访问{{ ips?.todayIp }}</div>
<div class="ml-2">总访问{{ ips?.allIp }}</div>
</div> -->
</div>
</d-footer>
</d-layout>
</template>
<script setup lang="ts">
// 空白项目入口
// definePage({
// path:"/",
// })
const route = useRoute()
</script>
<style scoped>
.dcontent-1 {
background-color: #fbfbfb;
}
.beian {
padding: 20px 0;
display: flex;
justify-content: center;
background-color: #21072a;
}
.beian a {
font-size: 14px;
text-decoration: none;
}
.beian .swag {
margin-left: 20px;
}
</style>