Update BookShelf.vue
This commit is contained in:
@@ -131,6 +131,7 @@ const searchBook = () => {
|
|||||||
API.search(
|
API.search(
|
||||||
search.value,
|
search.value,
|
||||||
(data) => {
|
(data) => {
|
||||||
|
closeLoading();
|
||||||
try {
|
try {
|
||||||
store.setSearchBooks(JSON.parse(data));
|
store.setSearchBooks(JSON.parse(data));
|
||||||
store.searchBooks.forEach((item) => books.value.push(item));
|
store.searchBooks.forEach((item) => books.value.push(item));
|
||||||
|
|||||||
Reference in New Issue
Block a user