Merge pull request #93 from 1Panel-dev/pr@main@fix-bugs

fix: 修复文档为空的情况#92
This commit is contained in:
wangdan-fit2cloud 2024-04-15 15:58:35 +08:00 committed by GitHub
commit 5164955206
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@ function getDocument() {
cloneDocumentList.value = res.data
documentList.value = res.data
currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : ''
getParagraphList(currentDocument.value)
currentDocument.value && getParagraphList(currentDocument.value)
})
}