@ -7,4 +7,4 @@ const boguApi = {
}
export default boguApi;
@ -1,7 +1,7 @@
import service from "./indexApi";
const bookApi = {
getBookList() {
return service.post("/api/ebooks/getEbookList");
return service.post("/api/ebooks/getList");
},
export default bookApi;
@ -2,7 +2,7 @@ import service from "./indexApi";
const homeApi = {
selectHome(queryType){
//查询首页的数据
return service.post('/api/show/getShowList', {queryType: queryType});
return service.post('/api/show/getList', {queryType: queryType});
Before
Width: 104 | Height: 100 | Size: 41 KiB
After
@ -65,9 +65,9 @@ const books = ref([]);
//向后端发送请求
function getBooks() {
bookApi.getBookList().then(resp => {
books.value = resp.data.list;
books.value = resp.data.data;
console.log(books.value);
} );
});
getBooks();