🎉🎉使用Vite + Vue3 + Pinia + Vue-router + TypeScript + Element-plus + Mock开发的后台管理系统🎉🎉
English | 简体中文
Vite-Vue-Admin
Is a front-end management template,It is implemented based on Vite4.x
, Vue3.x
, Vue-router4.x
, Pinia
, Element-plus
, TypeScript
. It uses the latest front-end technology stack, built-in vue-i18n
internationalization solution, dynamic routing, Secondary development of the table component,antd-x6
,Refined typical business model, provides a wealth of functional components, it can help you quickly build enterprise-level back-end product prototype. It can also be used as an example to learn mainstream technologies such as Vue3, Vite, Ts, etc.
major dispositions
Built-in element-plus Two development Encapsulation
upload-file
(File Upload,Support specified file format,File size)powerful-table
(Multi-function form component)Documentation readmePrecautions
mock
mock
Please main.ts
Uncomment the following code under the file.env.production
Under the file VITE_MOCK
Variable to modify its false
mock
Please.env.development
Under the file VITE_MOCK
Variable to modify its false
// main.ts
// if (
// import.meta.env.VITE_MOCK === "true"
// ) {
mockXHR()
// }
// node_modules/mockjs/dist/mock.js
if (!this.match) {
// 8364 line added
this.custom.xhr.responseType = this.responseType
this.custom.xhr.send(data)
return
}
pnpm install
pnpm dev # project running
pnpm build # Project forming
pnpm tsc # Check code type
pnpm preview # Project preview
pnpm clean:cache # clear cache
pnpm clean:modules # clear node_modules folder
pnpm lint:lint-staged # Verify the code format at commit time
pnpm prepare # init husky
Welcome to join us! Ask an Issue
or submit a Pull Request
.
Pull Request:
git checkout -b feat/xxxx
git commit -am 'feat: add xxxxx'
git push origin feat/xxxx
pull request
reference vue specification (Angular)
feat
Add new featuresfix
Fix the problem/BUGstyle
The code style is related and does not affect the running resultperf
Optimization/performance improvementrefactor
Refactorrevert
Undo edittest
Test relateddocs
Documentation/noteschore
Dependency update/scaffolding configuration modification etc.workflow
Workflow improvementsci
Continuous integrationtypes
Type definition file changeswip
In developmenterrorHandler
markdown
Editor (support formulas, emoticons, flow charts…)excel
import and exportOther functions can be issues
propose
If you think this project helped you, please help click Star