mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: Fixed share-log UI issues and log-template bugs (#9166)
### What problem does this PR solve? Fix: Fixed share-log UI issues and log-template bugs #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -147,7 +147,7 @@ const AgentLogPage: React.FC = () => {
|
||||
setPagination((pre) => {
|
||||
return {
|
||||
...pre,
|
||||
current: current ?? pre.current,
|
||||
current: current ?? pre.pageSize ? 1 : pre.current,
|
||||
pageSize: pageSize ?? pre.pageSize,
|
||||
};
|
||||
});
|
||||
@ -196,8 +196,10 @@ const AgentLogPage: React.FC = () => {
|
||||
const [openModal, setOpenModal] = useState(false);
|
||||
const [modalData, setModalData] = useState<IAgentLogResponse>();
|
||||
const showLogDetail = (item: IAgentLogResponse) => {
|
||||
setModalData(item);
|
||||
setOpenModal(true);
|
||||
if (item?.round) {
|
||||
setModalData(item);
|
||||
setOpenModal(true);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user