|
1 |
| -# vue-blog-template |
| 1 | +# vueBlog-template |
2 | 2 |
|
3 |
| -[](https://github.com/vuejs/vue) |
4 |
| -[](https://github.com/vuejs/vue-router) |
5 |
| -[](https://github.com/vuejs/vuex) |
6 |
| -[](https://cli.vuejs.org/zh/) |
7 |
| -[](https://github.com/ElemeFE/element) |
8 |
| -[](https://github.com/uncleLian/vue-blog/releases) |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
9 | 7 |
|
10 |
| -##### 注:master分支基于 vue-cli-3.x,vue-cli-2.x请移步到v1.0分支 |
11 | 8 |
|
12 | 9 | > 这是一个极简的管理后台模板,它只包含了搭建管理后台的一些必要功能
|
13 | 10 |
|
| 11 | +##### 注:master分支基于 vue-cli-3.x,vue-cli-2.x请移步到[v1.0分支](https://github.com/uncleLian/vueBlog-template/tree/v1.0) |
| 12 | + |
14 | 13 | - [在线演示](http://template.liansixin.win)
|
15 |
| -- [使用文档](https://unclelian.github.io/vue-blog-docs/) |
| 14 | +- [使用文档](http://liansixin.win/vue-blog-book) |
16 | 15 |
|
17 |
| -<img src="http://poci6sbqi.bkt.clouddn.com/vue-blog-template.png" width="900px" style="max-width: 100%;"/> |
| 16 | +<img src="https://github.com/uncleLian/vueBlog-template/raw/gh-pages/screenshots/dashboard.png" width="900px" style="max-width: 100%;"/> |
18 | 17 |
|
19 | 18 | ## 功能
|
20 |
| -功能持续迭代中,欢迎 [pr](https://github.com/uncleLian/vue-blog/pulls) 和 [issue](https://github.com/uncleLian/vue-blog/issues) |
21 |
| - |
22 |
| -``` |
23 |
| -- 登录/注销 |
24 |
| -- 权限验证 |
25 |
| - - 页面级权限 |
26 |
| - - 按钮级权限 |
27 |
| -- 多环境 |
28 |
| - - dev |
29 |
| - - prod |
30 |
| - - stage |
31 |
| -- 动态侧边栏 |
32 |
| -- 动态面包屑 |
33 |
| -- 错误处理 |
34 |
| - - 401 |
35 |
| - - 404 |
36 |
| - - 错误日志 |
37 |
| -- 其他处理 |
38 |
| - - axios封装 |
39 |
| - - cache封装 |
40 |
| - - 页面平滑过渡 |
41 |
| - - css预处理器全局变量 |
42 |
| - - 包体积优化 |
43 |
| -- svg icon / iconfont |
44 |
| -- mock |
45 |
| -- 进度条 |
46 |
| -``` |
47 |
| - |
48 |
| -## 开发 |
| 19 | +- [x] 登录/注销 |
| 20 | +- [x] 权限验证(页面级) |
| 21 | +- [x] 动态侧边栏 |
| 22 | +- [x] 动态面包屑 |
| 23 | +- [x] 导航标签 |
| 24 | +- [x] 401、404、全局错误捕捉 |
| 25 | +- [x] 多环境(dev、sit、prod) |
| 26 | +- [x] svg icon / iconfont |
| 27 | +- [x] 进度条 |
| 28 | +- [x] element-ui |
| 29 | +- [x] axios封装(统一处理请求、拦截、报错等) |
| 30 | +- [x] cache封装 |
| 31 | + |
| 32 | + |
| 33 | +## 开发和发布 |
49 | 34 | ```bash
|
50 | 35 | # 克隆项目
|
51 |
| -git clone https://github.com/uncleLian/vue-blog-template.git |
| 36 | +git clone https://github.com/uncleLian/vueBlog-template.git |
52 | 37 |
|
53 | 38 | # 安装依赖
|
54 | 39 | npm install
|
55 | 40 |
|
56 |
| -# 启动服务:localhost:8003 |
| 41 | +# 启动服务 |
57 | 42 | npm run dev
|
58 |
| -``` |
59 |
| - |
60 |
| -## 发布 |
61 |
| -```bash |
62 |
| -# 构建测试环境 |
63 |
| -npm run build:stage |
64 | 43 |
|
65 |
| -# 构建生产环境 |
| 44 | +# 发布 |
66 | 45 | npm run build
|
67 | 46 |
|
68 |
| -# 查看构建报告 |
| 47 | +# 测试环境 |
| 48 | +npm run build:stage |
| 49 | + |
| 50 | +# 报告 |
69 | 51 | npm run build:report
|
70 | 52 | ```
|
71 | 53 |
|
72 |
| -## 版本日志 |
73 |
| -[发行说明](https://github.com/uncleLian/vue-blog-template/releases)中记录了每个版本的详细更改。 |
74 |
| - |
75 |
| -## Browsers support |
76 |
| -| [<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 | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | |
77 |
| -| --------- | --------- | --------- | --------- | --------- | |
78 |
| -| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions |
79 |
| - |
80 |
| -## 捐赠 |
81 |
| -如果觉得这个项目帮助到了你,你可以请作者喝杯饮料表示支持 :green_heart: |
82 |
| - |
83 |
| - |
84 |
| - |
85 | 54 | ## 交流
|
86 | 55 | 欢迎热爱学习、忠于分享的朋友一起来交流
|
87 | 56 | - Vue交流群:338241465
|
|
0 commit comments