使用mock模拟后台数据
2018-07-06 本文已影响21人
火星的蝈蝈
一、安装vue-resource
1、 在package.json添加依赖

2、npm安装vue-resource

3、配置webpack.dev.conf.js

在devServer 函数中添加

一、安装vue-resource
1、 在package.json添加依赖
2、npm安装vue-resource
3、配置webpack.dev.conf.js
在devServer 函数中添加