This is a project template for vue-cli
# install dependencies
npm install
# serve with hot reload at localhost:8880 //* Need to be modified to the project's port
npm run dev
# build for production with minification
npm run build
- config
- dist
- src
- api
- index.js //用来存放和请求相关的方法和全局变量
- assets //用于放初始化项目的文件
- css
- image
- js
- lang // 多语言文件
- components //自定义组件or模块
- mock //模拟数据
- router //路由文件
- index.js
- store //store状态管理
- action.js
- index.js
- reducer.js
- store.js
- types.js
- style
- views //业务模块
- app.vue //首页
- main.js // 入口js
- api
- static //静态文件
- images
You can change theme by
- Generate theme packages by https://elementui.github.io/theme-preview/#/
- Put theme packages in src/assets/theme/
- Edit src/main.js
import 'element-ui/lib/theme-default/index.css' //element-ui 1.0
import 'element-ui/lib/theme-chalk/index.css' //element-ui 2.0
to
import './assets/theme/your-theme/index.css'
- Edit src/styles/vars.scss
$color-primary: #70A7EA;
$color-primary-selected: #3F84D9;
Modern browsers and IE 10+.
//开发环境
npm run dev
//测试环境
npm run test
//生产环境
npm run prod
# License
[MIT](http://opensource.org/licenses/MIT)