fix(web): author of book can be null
This commit is contained in:
@@ -482,7 +482,7 @@ onMounted(async () => {
|
||||
const chapterIndex = Number(sessionStorage.getItem('chapterIndex') || 0)
|
||||
const chapterPos = Number(sessionStorage.getItem('chapterPos') || 0)
|
||||
const isSeachBook = sessionStorage.getItem('isSeachBook') === 'true'
|
||||
if (isNullOrBlank(bookUrl) || isNullOrBlank(name) || isNullOrBlank(author)) {
|
||||
if (isNullOrBlank(bookUrl) || isNullOrBlank(name) || author === null) {
|
||||
ElMessage.warning('书籍信息为空,即将自动返回书架页面...')
|
||||
return setTimeout(toShelf, 500)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user