-
+
- 小说管理 + +
From 7f34045a822008e4df512f4c066c7dddd81c1f7c Mon Sep 17 00:00:00 2001
From: xiongxiaoyang <773861846@qq.com>
Date: Sun, 29 May 2022 18:03:57 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=B0=8F=E8=AF=B4?=
=?UTF-8?q?=E5=8F=91=E5=B8=83=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/author.js | 4 +
src/router/index.js | 5 +
src/views/author/BookAdd.vue | 822 ++++++++++++++++++++++++++++++++++
src/views/author/BookList.vue | 33 +-
4 files changed, 851 insertions(+), 13 deletions(-)
create mode 100644 src/views/author/BookAdd.vue
diff --git a/src/api/author.js b/src/api/author.js
index 6759e56..27060f8 100644
--- a/src/api/author.js
+++ b/src/api/author.js
@@ -10,4 +10,8 @@ export function register(params) {
export function listBooks() {
return request.get('/author/books');
+}
+
+export function publishBook(params) {
+ return request.post('/author/book', params);
}
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 0b3abb6..8b645bf 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -78,6 +78,11 @@ const router = createRouter({
name: 'authorBookList',
component: () => import('@/views/author/BookList')
},
+ {
+ path: '/author/book_add',
+ name: 'authorBookAdd',
+ component: () => import('@/views/author/BookAdd')
+ }
]
})
diff --git a/src/views/author/BookAdd.vue b/src/views/author/BookAdd.vue
new file mode 100644
index 0000000..1b22c81
--- /dev/null
+++ b/src/views/author/BookAdd.vue
@@ -0,0 +1,822 @@
+
+
+
+