demo: https://taylorchen709.github.io/vue-admin/
This is a project template for vue-cli
# install dependencies
npm install
# serve with hot reload at localhost:8081
npm run dev
# build for production with minification
npm run build
- build - webpack config files
- config - webpack config files
- dist - build
- src -your app
- api
- assets
- common
- components - your vue components
- mock
- styles
- views - your pages
- vuex
- App.vue
- main.js - main file
- routes.js
- static - static assets
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'
to
import './assets/theme/your-theme/index.css'
- Edit src/styles/vars.scss
Modern browsers and IE 10+.
git 地址: https://github.com/taylorchen709/vue-admin 1.需要解决跨域的问题 Springboot 解决方式 参考:https://www.cnblogs.com/panxuejun/p/7272741.html 2.删除mock.js 实现服务端真实数据交互 /src/main.js 注释 13、14行 3.axios 实现http post、get请求 /src/api/api.js 4.idea 支持vue插件 plugin 搜索vue 下载安装vue.js 5.chrome支持vue插件。也可以安装。