From 75aefb050fdac38d44cce526f2bb62a0248843d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Thu, 17 Apr 2025 15:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E3=80=81=E7=94=B5=E5=AD=90?= =?UTF-8?q?=E4=B9=A6=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bookApi.js | 7 +++++ src/views/BookView.vue | 77 ++++++++++++++++++++++++++++++-------------------- src/views/HomeView.vue | 37 +++++++++++++----------- 3 files changed, 73 insertions(+), 48 deletions(-) create mode 100644 src/api/bookApi.js diff --git a/src/api/bookApi.js b/src/api/bookApi.js new file mode 100644 index 0000000..24a8f42 --- /dev/null +++ b/src/api/bookApi.js @@ -0,0 +1,7 @@ +import service from "./indexApi"; +const bookApi = { + getBookList() { + return service.post("/api/ebooks/getEbookList"); + }, +} +export default bookApi; diff --git a/src/views/BookView.vue b/src/views/BookView.vue index e78babe..d5caa97 100644 --- a/src/views/BookView.vue +++ b/src/views/BookView.vue @@ -1,11 +1,12 @@