A vue admin template with Element UI & axios & iconfont & permission control & lint
npm install avue-admin-templatev4.0+ build on vue-cli. If you want to use the old version , you can switch branch to tag/3.11.0, it does not rely on vue-cli
bash
clone the project
git clone https://github.com/PanJiaChen/vue-admin-template.git
enter the project directory
cd vue-admin-template
install dependency
npm install
develop
npm run dev
`
This will automatically open http://localhost:9528
Build
`bash
build for test environment
npm run build:stage
build for production environment
npm run build:prod
`
Advanced
`bash
preview the release environment effect
npm run preview
preview the release environment effect + static resource analysis
npm run preview -- --report
code format check
npm run lint
code format check and auto fix
npm run lint -- --fix
`
Refer to Documentation for more information
Demo
!demo
Extra
If you want router permission && generate menu by user roles , you can use this branch permission-control
For typescript` version, you can use vue-typescript-admin-template (Credits: @Armour)
IE / Edge |
Firefox |
Chrome |
Safari |