Skip to content

Commit

Permalink
feat(navigate): open edit in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
PaiJi committed Dec 22, 2024
1 parent 7753775 commit db3c2da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/pages/dashboard/event/components/EventList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ function EventList({
color="green"
onClick={() => {
window.open(`/dashboard/event/${record.id}/edit`);
// navigate(`/dashboard/event/${record.id}/edit`);
}}
leftSection={<IconEdit size={14} />}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function OrganizationList({
color="green"
aria-label="view"
onClick={() => {
navigate(`/dashboard/organization/${record.id}/edit`);
window.open(`/dashboard/organization/${record.id}/edit`);
}}
leftSection={<IconEdit size={14} />}
>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/dashboard/organization/edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ function OrganizationEditorContent({
title: '更新成功',
message: '更新展商数据成功',
color: 'teal',
autoClose: false,
});
navigate('/dashboard/organization');
}
console.log('update res', res);
} else {
Expand All @@ -145,8 +145,8 @@ function OrganizationEditorContent({
title: '创建成功',
message: '创建展商数据成功',
color: 'teal',
autoClose: false,
});
navigate('/dashboard/organization');
}
}
} else {
Expand Down

0 comments on commit db3c2da

Please sign in to comment.