!1503 优化:F1面板帮助按钮的链接

pull/1503/MERGE
黄诗津 3 years ago committed by ChenX
parent 020d7b29dd
commit ff61100e3e

@ -246,7 +246,7 @@ export class CommandItem extends React.Component<CommandItemProps, {}>{
className={Classes.POPOVER_DISMISS}
icon="redo"
onClick={() => this.isReset = true}
></Button>
/>
}
/>
</li>
@ -254,13 +254,16 @@ export class CommandItem extends React.Component<CommandItemProps, {}>{
<Button
minimal={true}
intent={Intent.PRIMARY}
>
<a
href={store.commandData.link}
onClick={(e) => e.stopPropagation()}
></a>
</Button>
style={{ visibility: store.commandData.link?.length > 2 ? "visible" : "hidden" }}
onClick={(e: React.MouseEvent<HTMLElement>) =>
{
if (store.commandData.link?.length > 2)
window.open(store.commandData.link, '_blank').focus();
e.preventDefault();
e.stopPropagation();
}}
text="帮助"
/>
</li>
</li>
);

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save