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

View File

@@ -0,0 +1,45 @@
<script lang="ts" setup>
import { useHead } from '@vueuse/head'
import { pwa } from '@/config'
import { enLocale, zhLocale } from '@/i18n'
const route = useRoute()
const { locale: language } = useI18n()
const locale = computed(() =>
language.value === 'en' ? enLocale : zhLocale
)
const VabUpdate = defineAsyncComponent(
() => import('@/plugins/VabUpdate/index.vue')
)
const siteData = reactive({
description: '',
})
watchEffect(() => {
siteData.description = `${'Vue'} ${'Admin'} ${'Plus'}-${route.meta.title} - 简介、官网、首页、文档和下载 - 前端开发框架`
})
useHead({
meta: [
{
name: `description`,
content: computed(() => siteData.description),
},
],
})
</script>
<template>
<el-config-provider
:button="{
autoInsertSpace: true,
}"
:locale="locale"
>
<router-view v-slot="{ Component }">
<component :is="Component" />
</router-view>
<vab-update v-if="pwa" ref="vabUpdateRef" />
</el-config-provider>
</template>