mirror of
https://github.com/nocobase/nocobase.git
synced 2026-10-30 18:42:22 +08:00
Merge branch 'next' into develop
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user