Skip to content

Commit 840592c

Browse files
committed
fix: make "edit operation" open in new tab
1 parent 4d3379b commit 840592c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/viewer/OperationViewer.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import { OPERATORS } from '../../models/operator'
5454
import { formatError } from '../../utils/error'
5555
import { ActionCard } from '../ActionCard'
5656
import { Confirm } from '../Confirm'
57-
import { ReLinkDiv } from '../ReLinkDiv'
57+
import { ReLink } from '../ReLink'
5858
import { UserName } from '../UserName'
5959
import { CommentArea } from './comment/CommentArea'
6060

@@ -96,9 +96,15 @@ const ManageMenu: FC<{
9696
return (
9797
<>
9898
<Menu>
99-
<ReLinkDiv to={`/create/${operation.id}`}>
100-
<MenuItem icon="edit" text="修改作业" />
101-
</ReLinkDiv>
99+
<li>
100+
<ReLink
101+
className="hover:text-inherit hover:no-underline"
102+
to={`/create/${operation.id}`}
103+
target="_blank"
104+
>
105+
<MenuItem tagName="div" icon="edit" text="修改作业" />
106+
</ReLink>
107+
</li>
102108
{operation.commentStatus === BanCommentsStatusEnum.Enabled && (
103109
<Confirm
104110
intent="danger"

0 commit comments

Comments
 (0)