-
+
- 小说管理 + +
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 @@
+
+
+
+