Skip to content

Commit 29f804d

Browse files
fix: 修复文档为空的情况
1 parent b38b571 commit 29f804d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/problem/component/RelateProblemDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function getDocument() {
172172
cloneDocumentList.value = res.data
173173
documentList.value = res.data
174174
currentDocument.value = cloneDocumentList.value?.length > 0 ? cloneDocumentList.value[0].id : ''
175-
getParagraphList(currentDocument.value)
175+
currentDocument.value && getParagraphList(currentDocument.value)
176176
})
177177
}
178178

0 commit comments

Comments
 (0)