一、data.json
在根目录下面创建包含数据的json文件
二、vue.comfig.js
在vue.config.js文件中添加配置
三、在浏览器中访问
Vue api数据模拟
原文:https://www.cnblogs.com/mxsf/p/10962628.html