long
2022-02-18 762ab787381b743b2e2bb1d8a3b7ee5aeacb7e0e
提交 | 用户 | age
2a61f6 1 # vue-admin-template
L 2
3 English | [简体中文](./README-zh.md)
4
5 > A minimal vue admin template with Element UI & axios & iconfont & permission control & lint
6
7 **Live demo:** http://panjiachen.github.io/vue-admin-template
8
9
10 **The current version is `v4.0+` build on `vue-cli`. If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-admin-template/tree/tag/3.11.0), it does not rely on `vue-cli`**
11
12 ## Build Setup
13
14 ```bash
15 # clone the project
16 git clone https://github.com/PanJiaChen/vue-admin-template.git
17
18 # enter the project directory
19 cd vue-admin-template
20
21 # install dependency
22 npm install
23
24 # develop
25 npm run dev
26 ```
27
28 This will automatically open http://localhost:9528
29
30 ## Build
31
32 ```bash
33 # build for test environment
34 npm run build:stage
35
36 # build for production environment
37 npm run build:prod
38 npm run build:prod --report
39 ```
40
41 ## Advanced
42
43 ```bash
44 # preview the release environment effect
45 npm run preview
46
47 # preview the release environment effect + static resource analysis
48 npm run preview -- --report
49
50 # code format check
51 npm run lint
52
53 # code format check and auto fix
54 npm run lint -- --fix
55 ```
56
57 Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
58
59 ## Demo
60
61 ![demo](https://github.com/PanJiaChen/PanJiaChen.github.io/blob/master/images/demo.gif)
62
63 ## Extra
64
65 If you want router permission && generate menu by user roles , you can use this branch [permission-control](https://github.com/PanJiaChen/vue-admin-template/tree/permission-control)
66
67 For `typescript` version, you can use [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
68
69 ## Related Project
70
71 - [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)
72
73 - [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
74
75 - [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template)
76
77 - [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
78
79 ## Browsers support
80
81 Modern browsers and Internet Explorer 10+.
82
83 | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
84 | --------- | --------- | --------- | --------- |
85 | IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
86
87 ## License
88
89 [MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
90
91 Copyright (c) 2017-present PanJiaChen