# install dependency
npm install

# develop
npm run dev

# build for test environment
npm run build:stage

# build for production environment
npm run build:prod

mo 8d51d4397f Merge branch 'LAO_MO' into online hace 4 años
build 100155e494 08/26 hace 6 años
dist ef47fc0032 筹备中乐团修改 hace 4 años
mock ca6b3cf13d 123 hace 5 años
public d3c503b759 1126 20:57 hace 5 años
src 8d51d4397f Merge branch 'LAO_MO' into online hace 4 años
tests 107bd06f10 去掉console hace 5 años
.editorconfig 100155e494 08/26 hace 6 años
.env.development 94ead8468e 09/17 11:29 hace 5 años
.env.production 94ead8468e 09/17 11:29 hace 5 años
.env.staging 100155e494 08/26 hace 6 años
.eslintignore 28caf42554 09/09 13:37 hace 5 años
.eslintrc.js 28caf42554 09/09 13:37 hace 5 años
.gitignore 8a37d6a138 1024 15:57 hace 5 años
.npmrc 433d1be580 03/16 19:11 hace 5 años
.travis.yml 100155e494 08/26 hace 6 años
LICENSE 100155e494 08/26 hace 6 años
README-zh.md 18cbda9291 11 hace 4 años
README.md 100155e494 08/26 hace 6 años
babel.config.js 100155e494 08/26 hace 6 años
jest.config.js 100155e494 08/26 hace 6 años
package.json 59dcb08647 11 hace 4 años
postcss.config.js 100155e494 08/26 hace 6 años
vue.config.js a7d4d3add3 fix hace 4 años
{ b8ffa93926 11 hace 4 años

README-zh.md

vue-admin-template

这是一个极简的 vue admin 管理后台。它只包含了 Element UI & axios & iconfont & permission control & lint,这些搭建后台必要的东西。

公用方法调用

  1. 导出文档或下载模板
    • utils/downLoadFile

Extra

如果你想要根据用户角色来动态生成侧边栏和 router,你可以使用该分支permission-control

相关项目

vue-element-admin

electron-vue-admin

vue-typescript-admin-template

写了一个系列的教程配套文章,如何从零构建后一个完整的后台项目:

Build Setup

# 克隆项目
git clone https://github.com/PanJiaChen/vue-admin-template.git

# 进入项目目录
cd vue-admin-template

# 安装依赖
npm install

# 建议不要直接使用 cnpm 安装以来,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org

# 启动服务
npm run dev

发布

# 构建测试环境
npm run build:stage

# 构建生产环境
npm run build:prod

其它

# 预览发布环境效果
npm run preview

# 预览发布环境效果 + 静态资源分析
npm run preview -- --report

注意事项

```bash