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 readme
Precautions
- The default is to use both the development version and the release version
mockIf the release version needs to be disabledmockPleasemain.tsUncomment the following code under the file And find.env.productionUnder the fileVITE_MOCKVariable to modify itsfalse - Development version disabled
mockPlease.env.developmentUnder the fileVITE_MOCKVariable to modify itsfalse
// main.ts
// if (
// import.meta.env.VITE_MOCK === "true"
// ) {
mockXHR()
// }- Image download success can not open solution
// 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 installpnpm 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 huskyWelcome to join us! Ask an Issue or submit a Pull Request.
Pull Request:
- Fork code!
- Create your own branch:
git checkout -b feat/xxxx - Submit your changes:
git commit -am 'feat: add xxxxx' - Push your branch:
git push origin feat/xxxx - submit
pull request
-
reference vue specification (Angular)
featAdd new featuresfixFix the problem/BUGstyleThe code style is related and does not affect the running resultperfOptimization/performance improvementrefactorRefactorrevertUndo edittestTest relateddocsDocumentation/noteschoreDependency update/scaffolding configuration modification etc.workflowWorkflow improvementsciContinuous integrationtypesType definition file changeswipIn development
- File Upload
- Tencent map (remove)
- Amap selected points
- Amap electronic fence
- graphic edit (Antd-x6)
- signature
- select icon
- Internationalized multilanguage (i18n)
- tablet menu
- Added log menu to catch interface errors as well
errorHandler - Global common configuration (component size, theme color, watermark, etc.)
-
markdownEditor (support formulas, emoticons, flow charts...) - Permission Test Menu (Permission instruction)
- The login password is stored locally using MD5 encryption
-
excelimport and export - Print instruction, copy instruction
- Global instruction
Other functions can be issues propose
If you think this project helped you, please help click Star