# vuedemo
**Repository Path**: zero_github/vuedemo
## Basic Information
- **Project Name**: vuedemo
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-03-07
- **Last Updated**: 2021-03-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
### 二.新建及运行
新建: vue init webpack project;///vue ui(UI界面)
安装: cnpm install
运行: cnpm run dev
### 三、路由
$http和$router有什么区别
##### 1、概念
router路由是进行前端页面跳转的。
http是对axios取得名字,是对后端服务器的请求。
##### 2.配置
main.js里对$http和$router的配置
$http
import axios from 'axios'
axios.defaults.baseURL = 'http://127.0.0.1:8848';
Vue.prototype.$http = axios
$router
import router from './router'
new Vue({
el: '#app',
router,
// axios,
components: { App },
template: ''
})
以及对index.js的配置
### 四、框架
大部分ui框架只是自定义完成了一些标签,只有导入相应的框架包,就可以直接使用这些标签。
##### main.js的配置
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
##### vue文件里直接使用
退出