mock 前端mockserver 安装和使用 安装依赖 npm install 启动服务 npm run mock 默认启动在3000端口,可以自己在package中更改,路由和中间件在对应的名字文件下。