# Vue **Repository Path**: mihuartuanr/Vue ## Basic Information - **Project Name**: Vue - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue #### 项目介绍 一步步完成`Vue`项目自定义配置。 #### 项目目标 1. mockJs进行数据模拟; #### 软件架构 #### 安装教程 #### 使用说明 **注意:**`export default`、`export`、`module.exports`的区别; 1. 默认情况下`src/server/`目录下的文件都不可以使用ES6语言: * 需要`babel-cli`、`babel-preset-env`、`babel-register`环境; * 在启动服务`node -r babel-register ./src/server/`中添加`-r babel-register`配置; 2. 模拟数据: * `app.get('/path', (req, res) => res.json({}))`拦截`GET`请求; * ``` app.post('/path', (req, res) => { //req.body获取数据 }) ``` 拦截`POST`请求; * ``` app.put('/path/:id', (req, res) => { //req.params.id获取数据 }) ``` 拦截`PUT`请求; * ``` app.delete('/path/:id', (req, res) => { //req.params.id获取数据 }) ``` 拦截`Delete`请求; #### 参与贡献