Skip to content

limeiwang/vue-mock-cli

Repository files navigation

vue-mock-cli

template、vue-cli、json-server、axios

在后端没有提供数据之前可以使用自己的数据

使用方法:

  1. npm install && npm run mock
  2. vue.config.js里更改proxy代理http://localhost:3000/(默认端口3000)
  3. mock/api文件夹内创建自己的json数据(会根据json文件的存放位置自动生成url路径)

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About

vue/cli + json-server + axios + bmis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published