|
@@ -1,99 +1,44 @@
|
|
|
-# vue-admin-template
|
|
|
|
|
|
|
|
|
|
-English | [简体中文](./README-zh.md)
|
|
|
|
|
|
|
+# 框架代码使用方法
|
|
|
|
|
|
|
|
-> A minimal vue admin template with Element UI & axios & iconfont & permission control & lint
|
|
|
|
|
|
|
+# 进入项目目录
|
|
|
|
|
+cd aivfo-oa-web
|
|
|
|
|
|
|
|
-**Live demo:** http://panjiachen.github.io/vue-admin-template
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-**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`**
|
|
|
|
|
-
|
|
|
|
|
-<p align="center">
|
|
|
|
|
- <b>SPONSORED BY</b>
|
|
|
|
|
-</p>
|
|
|
|
|
-<p align="center">
|
|
|
|
|
- <a href="https://finclip.com?from=vue_element" title="FinClip" target="_blank">
|
|
|
|
|
- <img height="200px" src="https://gitee.com/panjiachen/gitee-cdn/raw/master/vue%E8%B5%9E%E5%8A%A9.png" title="FinClip">
|
|
|
|
|
- </a>
|
|
|
|
|
-</p>
|
|
|
|
|
-
|
|
|
|
|
-## Build Setup
|
|
|
|
|
-
|
|
|
|
|
-```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
|
|
npm install
|
|
|
|
|
|
|
|
-# develop
|
|
|
|
|
|
|
+# 建议不要直接使用 cnpm 安装以来,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题
|
|
|
|
|
+npm install --registry=https://registry.npm.taobao.org
|
|
|
|
|
+
|
|
|
|
|
+# 启动服务
|
|
|
npm run dev
|
|
npm run dev
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-This will automatically open http://localhost:9528
|
|
|
|
|
|
|
+浏览器访问 http://localhost:9528
|
|
|
|
|
|
|
|
-## Build
|
|
|
|
|
|
|
+## 发布
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
-# build for test environment
|
|
|
|
|
|
|
+# 构建测试环境
|
|
|
npm run build:stage
|
|
npm run build:stage
|
|
|
|
|
|
|
|
-# build for production environment
|
|
|
|
|
|
|
+# 构建生产环境
|
|
|
npm run build:prod
|
|
npm run build:prod
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-## Advanced
|
|
|
|
|
|
|
+## 其它
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
-# preview the release environment effect
|
|
|
|
|
|
|
+# 预览发布环境效果
|
|
|
npm run preview
|
|
npm run preview
|
|
|
|
|
|
|
|
-# preview the release environment effect + static resource analysis
|
|
|
|
|
|
|
+# 预览发布环境效果 + 静态资源分析
|
|
|
npm run preview -- --report
|
|
npm run preview -- --report
|
|
|
|
|
|
|
|
-# code format check
|
|
|
|
|
|
|
+# 代码格式检查
|
|
|
npm run lint
|
|
npm run lint
|
|
|
|
|
|
|
|
-# code format check and auto fix
|
|
|
|
|
|
|
+# 代码格式检查并自动修复
|
|
|
npm run lint -- --fix
|
|
npm run lint -- --fix
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
|
|
|
|
|
-
|
|
|
|
|
-## Demo
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-## Extra
|
|
|
|
|
-
|
|
|
|
|
-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)
|
|
|
|
|
-
|
|
|
|
|
-For `typescript` version, you can use [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
|
|
|
|
|
-
|
|
|
|
|
-## Related Project
|
|
|
|
|
-
|
|
|
|
|
-- [vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)
|
|
|
|
|
-
|
|
|
|
|
-- [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
|
|
|
|
|
-
|
|
|
|
|
-- [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template)
|
|
|
|
|
-
|
|
|
|
|
-- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
|
|
|
|
|
-
|
|
|
|
|
-## Browsers support
|
|
|
|
|
-
|
|
|
|
|
-Modern browsers and Internet Explorer 10+.
|
|
|
|
|
-
|
|
|
|
|
-| [<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 |
|
|
|
|
|
-| --------- | --------- | --------- | --------- |
|
|
|
|
|
-| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
|
|
|
|
|
-
|
|
|
|
|
-## License
|
|
|
|
|
-
|
|
|
|
|
-[MIT](https://github.com/PanJiaChen/vue-admin-template/blob/master/LICENSE) license.
|
|
|
|
|
-
|
|
|
|
|
-Copyright (c) 2017-present PanJiaChen
|
|
|