diff --git a/src/api/boguApi.js b/src/api/boguApi.js index b3dec00..732add7 100644 --- a/src/api/boguApi.js +++ b/src/api/boguApi.js @@ -7,4 +7,4 @@ const boguApi = { } -export default boguApi; \ No newline at end of file +export default boguApi; diff --git a/src/api/bookApi.js b/src/api/bookApi.js index 24a8f42..3b9003c 100644 --- a/src/api/bookApi.js +++ b/src/api/bookApi.js @@ -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; diff --git a/src/api/homeApi.js b/src/api/homeApi.js index 7ab8b26..6014b75 100644 --- a/src/api/homeApi.js +++ b/src/api/homeApi.js @@ -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}); } } diff --git a/src/assets/fc96bb6c-3c9e-4517-a8dc-3bacecc0df34.png b/src/assets/2.png similarity index 100% rename from src/assets/fc96bb6c-3c9e-4517-a8dc-3bacecc0df34.png rename to src/assets/2.png diff --git a/src/views/BookView.vue b/src/views/BookView.vue index d5caa97..5556118 100644 --- a/src/views/BookView.vue +++ b/src/views/BookView.vue @@ -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();