diff --git a/libs/chatchat-server/chatchat/webui_pages/knowledge_base/knowledge_base.py b/libs/chatchat-server/chatchat/webui_pages/knowledge_base/knowledge_base.py index be3c457..1442243 100644 --- a/libs/chatchat-server/chatchat/webui_pages/knowledge_base/knowledge_base.py +++ b/libs/chatchat-server/chatchat/webui_pages/knowledge_base/knowledge_base.py @@ -406,8 +406,8 @@ def knowledge_base_page(api: ApiRequest, is_lite: bool = None): editable=True, width=50, wrapHeaderText=True, - cellEditor="agCheckboxCellEditor", - cellRender="agCheckboxCellRenderer", + cellEditor="agTextCellEditor", + cellRender="agTextCellRenderer", ) # 启用分页 gb.configure_pagination( @@ -428,15 +428,15 @@ def knowledge_base_page(api: ApiRequest, is_lite: bool = None): changed_docs = [] for index, row in edit_docs.data.iterrows(): origin_doc = origin_docs[row["id"]] - if row["page_content"] != origin_doc["page_content"]: - if row["to_del"] not in ["Y", "y", 1]: - changed_docs.append( - { - "page_content": row["page_content"], - "type": row["type"], - "metadata": json.loads(row["metadata"]), - } - ) + # if row["page_content"] != origin_doc["page_content"]: + if row["to_del"] not in ["Y", "y", 1]: + changed_docs.append( + { + "page_content": row["page_content"], + "type": row["type"], + "metadata": json.loads(row["metadata"]), + } + ) if changed_docs: if api.update_kb_docs(