feat: 初始化项目结构并添加基础配置

添加前后端基础项目结构,包括.gitignore、package.json等配置文件
实现前端基础功能模块,包括路由、状态管理、API请求封装等
添加前端UI组件库和样式体系
配置开发环境Mock系统和构建工具链
This commit is contained in:
2026-03-18 14:03:35 +08:00
parent fc53f5620e
commit 9a387f3eec
504 changed files with 80629 additions and 0 deletions

34
front-end/src/App.vue Normal file
View File

@@ -0,0 +1,34 @@
<template>
<vab-app />
</template>
<script lang="ts" setup>
import DisableDevtool from 'disable-devtool'
import { noDebugger } from '@/config/index'
defineOptions({
name: 'App',
})
const route = useRoute()
onMounted(() => {
// 是否允许生产环境进行代码调试请前往config/cli.config.ts文件配置
setTimeout(() => {
if (
!location.hostname.includes('127') &&
!location.hostname.includes('localhost') &&
(location.hostname.includes('beautiful') ||
location.hostname.includes('vuejs-core') ||
noDebugger) &&
route.query &&
route.query.debugger !== 'auto'
)
DisableDevtool({
url: 'https://vuejs-core.cn/debugger',
timeOutUrl: 'https://vuejs-core.cn/debugger',
})
}, 500)
})
</script>