diff --git a/src/UI/Components/Panel.tsx b/src/UI/Components/Panel.tsx index 2b12246d0..ee9a93b90 100644 --- a/src/UI/Components/Panel.tsx +++ b/src/UI/Components/Panel.tsx @@ -1,6 +1,7 @@ import { Alignment, Button, Classes, HTMLSelect, Intent, Navbar, Position, ProgressBar, Switch, Tooltip } from '@blueprintjs/core'; import { inject, observer } from 'mobx-react'; import * as React from 'react'; +import { SendFile } from '../../Add-on/SendCADFileOnKF'; import { app } from '../../ApplicationServices/Application'; import { CommandNames } from '../../Common/CommandNames'; import { SignUrl } from '../../Common/HostUrl'; @@ -160,7 +161,7 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}> icon="people" text="发送图纸" intent={Intent.PRIMARY} - onClick={() => commandMachine.ExecCommand(CommandNames.SendCADFileToKF)} + onClick={() => SendFile()} /> }