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
mock
If the release version needs to be disabledmock
Pleasemain.ts
Uncomment the following code under the file And find.env.production
Under the fileVITE_MOCK
Variable to modify itsfalse
- Development version disabled
mock
Please.env.development
Under the fileVITE_MOCK
Variable 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 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:
- 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)
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 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.)
-
markdown
Editor (support formulas, emoticons, flow charts...) - Permission Test Menu (Permission instruction)
- The login password is stored locally using MD5 encryption
-
excel
import 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