修复:解决测试发现的问题
This commit is contained in:
@@ -98,11 +98,9 @@ async function loadBookList() {
|
||||
}
|
||||
|
||||
loading.value = true
|
||||
uni.showLoading({ title: t('global.loading') })
|
||||
|
||||
try {
|
||||
const res = await bookApi.getMyBooks(page.value.current, page.value.limit)
|
||||
uni.hideLoading()
|
||||
|
||||
if (res.page && res.page.records) {
|
||||
total.value = res.page.total
|
||||
@@ -115,7 +113,6 @@ async function loadBookList() {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
uni.hideLoading()
|
||||
console.error('Failed to load book list:', error)
|
||||
} finally {
|
||||
loading.value = false
|
||||
|
||||
Reference in New Issue
Block a user