// 读取本地json文件 export function GetUserAction (query){ let quesa = axios.get('/json/userAction.json').then(res => { // 获取public下的buildmenu.json文件数据 console.log('-------------读取的json数据------------') console.log(res) let datas = { "code": 2000, "data":{ "data":res.data, "limit": 10, "page": 1, "total": 10 }, "msg": "success" } return datas }) return quesa }
标签:文件,VUE,读取,res,json,data From: https://www.cnblogs.com/mentu21/p/16925613.html