修复:解决测试发现的问题

This commit is contained in:
2025-11-12 16:00:44 +08:00
parent 1da75a59f2
commit 1daa6367c9
29 changed files with 133 additions and 182 deletions

View File

@@ -181,9 +181,7 @@ async function loadComments() {
}
try {
uni.showLoading({ title: t('global.loading') })
const res = await bookApi.getBookComments(bookId.value, page.value.current, page.value.limit)
uni.hideLoading()
commentsCount.value = res.commentsCount || 0
@@ -194,7 +192,6 @@ async function loadComments() {
nullText.value = t('common.data_null')
}
} catch (error) {
uni.hideLoading()
nullText.value = t('common.data_null')
console.error('Failed to load comments:', error)
}
@@ -472,7 +469,7 @@ function toggleEmoji() {
}
.editor {
border: 1rpx solid #ddd;
border: 1px solid #ddd;
width: 100%;
min-height: 200rpx;
height: 200rpx;