目录
1、登录fastmock网页
2、加入项目
3、新增接口
4、导入
await axios.get("https://www.fastmock.site/mock/3398083f97dfbefa2de8845e27653849/api/home/getTableData").then((res) => { //导入地址
console.log(res);
// tableData.value = res.data.data.tableData;
if (res.data.code == 200) { //code为200时显示数据
tableData.value = res.data.data;
}
});