Merge branch 'next' into develop

This commit is contained in:
nocobase[bot]
2025-05-14 03:09:18 +00:00
2 changed files with 7 additions and 3 deletions
@@ -130,7 +130,7 @@ export function WorkflowPane() {
const ctx = useContext(SchemaComponentContext);
const { useTriggersOptions } = usePlugin(WorkflowPlugin);
return (
<Card bordered={false}>
<Card variant="borderless">
<SchemaComponentContext.Provider value={{ ...ctx, designable: false }}>
<SchemaComponent
schema={workflowSchema}
@@ -170,7 +170,7 @@ function useCurrentTaskType() {
}
function PopupContext(props: any) {
const { popupId } = useParams();
const { taskType, status = TASK_STATUS.PENDING, popupId } = useParams();
const { record } = usePopupRecordContext();
const navigate = useNavigate();
if (!popupId) {
@@ -181,7 +181,11 @@ function PopupContext(props: any) {
visible={Boolean(popupId)}
setVisible={(visible) => {
if (!visible) {
navigate(-1);
if (window.history.state.idx) {
navigate(-1);
} else {
navigate(`/admin/workflow/tasks/${taskType}/${status}`);
}
}
}}
openMode="modal"