From 32a04eec4c76ca684281f4900368ff859c08a442 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Wed, 8 Mar 2023 18:10:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=95=B0=E6=8D=AE=E5=90=8E=E9=A1=B5=E7=A0=81?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=B8=8D=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/setting/KnowledgeBaseForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/setting/KnowledgeBaseForm.vue b/src/views/setting/KnowledgeBaseForm.vue index 668b0aca..b9284095 100644 --- a/src/views/setting/KnowledgeBaseForm.vue +++ b/src/views/setting/KnowledgeBaseForm.vue @@ -272,12 +272,12 @@ export default { removeImportedData (index) { const toRemoveIndex = (this.importedPageObj.pageNo - 1) * this.importedPageObj.pageSize + index this.importedData.splice(toRemoveIndex, 1) + this.importedPageObj.total-- this.handleShowImportedData() // 若删除后本页无数据,则页码减1,或者提示无数据 if (this.showImportedData.length === 0) { if (this.importedData.length > 0) { this.importedPageObj.pageNo-- - this.importedPageObj.total = this.importedData.length this.handleShowImportedData() } else { this.importedDataNoData = true