Commit 60aa4fb2 authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

fix: 知识库页面显示数量不对

See merge request !69
parents 07b499b7 d50fcdd6
......@@ -101,7 +101,7 @@ async function handleGetKnowledgeList() {
if (res.code === 0) {
knowledgeList.value = res.data
paginationData.totalRows = res.pagingInfo?.totalPages || 0
paginationData.totalRows = res.pagingInfo?.totalRows || 0
paginationData.totalPages = res.pagingInfo?.totalPages || 0
isSearchEmptyList.value = !!searchKnowledgeInputValue.value && paginationData.totalRows === 0
knowledgeListLoading.value = false
......
......@@ -106,7 +106,7 @@ async function handleGetKnowledgeChunkList() {
if (res.code === 0) {
totalChunk.value = res.data.totalChunk
knowledgeChunkList.value = res.data.chunkInfos || []
paginationData.totalRows = res.pagingInfo?.totalPages || 0
paginationData.totalRows = res.pagingInfo?.totalRows || 0
paginationData.totalPages = res.pagingInfo?.totalPages || 0
knowledgeChunkListLoading.value = false
isSearchEmptyList.value = !!searchKnowledgeChunkValue.value && paginationData.totalRows === 0
......
......@@ -48,7 +48,7 @@ async function handleGetKnowledgeList() {
if (res.code === 0) {
knowledgeList.value = res.data
paginationData.totalRows = res.pagingInfo?.totalPages || 0
paginationData.totalRows = res.pagingInfo?.totalRows || 0
paginationData.totalPages = res.pagingInfo?.totalPages || 0
knowledgeListTableLoading.value = false
isSearchEmptyList.value = !!searchKnowledgeInputValue.value && paginationData.totalRows === 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment