一、安装vue-resource
1、 在package.json添加依赖
image.png
2、npm安装vue-resource
image.png
3、配置webpack.dev.conf.js
image.png
在devServer 函数中添加
image.png
一、安装vue-resource
1、 在package.json添加依赖
2、npm安装vue-resource
3、配置webpack.dev.conf.js
在devServer 函数中添加
本文标题:使用mock模拟后台数据
本文链接:https://www.haomeiwen.com/subject/xsubuftx.html
网友评论