chore: 更新 README.md
This commit is contained in:
19
README.md
19
README.md
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
business-center-vite 是一个开源免费,含前后端的后台管理模板
|
business-center-vite 是一个开源免费,含前后端的后台管理模板
|
||||||
|
|
||||||
|
前端技术栈:`Vue`, `Vite`,`Element Plus`,`Pinia`,`TypeScript`
|
||||||
|
|
||||||
## 项目结构
|
## 项目结构
|
||||||
|
|
||||||
项目代码使用 monorepo 管理(即整个项目代码都在主仓库维护),子仓库仅定期同步代码,如您只需要前端/后端模板,可以使用子仓库代码。
|
项目代码使用 monorepo 管理(即整个项目代码都在主仓库维护),子仓库仅定期同步代码,如您只需要前端/后端模板,可以使用子仓库代码。
|
||||||
@@ -28,6 +30,7 @@ business-center-vite (主仓库 business-center-vite)
|
|||||||
│ │ ├─ App.vue ------------------------
|
│ │ ├─ App.vue ------------------------
|
||||||
│ │ └─ main.ts ------------------------
|
│ │ └─ main.ts ------------------------
|
||||||
│ ├─ vite.config.ts ---------------------
|
│ ├─ vite.config.ts ---------------------
|
||||||
|
│ ├─ package.json ----------------------- 项目清单文件
|
||||||
│ ├─ ...
|
│ ├─ ...
|
||||||
│ └─ README.md -------------------------- 前端自述文件
|
│ └─ README.md -------------------------- 前端自述文件
|
||||||
├─ backend -------------------------------- 项目后端源码 (定期同步代码至子仓库: business-center-backend)
|
├─ backend -------------------------------- 项目后端源码 (定期同步代码至子仓库: business-center-backend)
|
||||||
@@ -36,9 +39,21 @@ business-center-vite (主仓库 business-center-vite)
|
|||||||
└─ README.md ------------------------------ 自述文件
|
└─ README.md ------------------------------ 自述文件
|
||||||
```
|
```
|
||||||
|
|
||||||
## 项目命名规范
|
## frontend 前端部分
|
||||||
|
|
||||||
### frontend 前端
|
### 核心依赖
|
||||||
|
|
||||||
|
| 依赖 | 版本 | 链接 | 说明 |
|
||||||
|
| ------------ | :----: | :----------------------------------------------------------: | ------------------------------------------------------------ |
|
||||||
|
| vue | 3.5.x | [官网](https://cn.vuejs.org/) [npm](https://www.npmjs.com/package/vue) [GitHub](https://github.com/vuejs/vue) | JavaScript 框架 |
|
||||||
|
| vite | 6.0.x | [官网](https://cn.vite.dev/) [npm](https://www.npmjs.com/package/vite) [GitHub](https://github.com/vitejs/vite) | 前端工具链 |
|
||||||
|
| element-plus | 2.9.x | [官网](https://element-plus.org/zh-CN/) [npm](https://www.npmjs.com/package/element-plus) [GitHub](https://github.com/element-plus/element-plus) | UI 组件库(使用[手动导入](https://element-plus.org/zh-CN/guide/quickstart.html#%E6%89%8B%E5%8A%A8%E5%AF%BC%E5%85%A5)方式) |
|
||||||
|
| pinia | 2.3.x | [官网](https://pinia.vuejs.org/) [npm](https://www.npmjs.com/package/pinia) [GitHub](https://github.com/vuejs/pinia) | 全局状态管理 |
|
||||||
|
| vue-router | 4.5.x | [官网](https://router.vuejs.org/) [npm](https://www.npmjs.com/package/vue-router) [GitHub](https://github.com/vuejs/router) | 路由管理 |
|
||||||
|
| vue-i18n | 11.1.x | [官网](https://vue-i18n.intlify.dev/) [npm](https://www.npmjs.com/package/vue-i18n) [GitHub](https://github.com/intlify/vue-i18n) | i18n 国际化 |
|
||||||
|
|
||||||
|
|
||||||
|
### 命名规范
|
||||||
|
|
||||||
目录名使用连字符 (例如: `auto-import/`), 组件名使用大驼峰 (例如: `UserCenter.vue`)
|
目录名使用连字符 (例如: `auto-import/`), 组件名使用大驼峰 (例如: `UserCenter.vue`)
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Vite App</title>
|
<title>Business Center Vite 后台管理系统</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
@@ -1,10 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
/* prettier-ignore */
|
|
||||||
// @ts-nocheck
|
|
||||||
// noinspection JSUnusedGlobalSymbols
|
|
||||||
// Generated by unplugin-auto-import
|
|
||||||
// biome-ignore lint: disable
|
|
||||||
export {}
|
|
||||||
declare global {
|
|
||||||
|
|
||||||
}
|
|
16
frontend/library/build/unplugin/components.d.ts
vendored
16
frontend/library/build/unplugin/components.d.ts
vendored
@@ -1,16 +0,0 @@
|
|||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
// Generated by unplugin-vue-components
|
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
|
||||||
// biome-ignore lint: disable
|
|
||||||
export {}
|
|
||||||
|
|
||||||
/* prettier-ignore */
|
|
||||||
declare module 'vue' {
|
|
||||||
export interface GlobalComponents {
|
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
|
||||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user