开发:避免调用命令

pull/2160/head
ChenX 2 years ago
parent 28bc1c285c
commit 40700796fe

@ -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()}
/>
}
<Button

Loading…
Cancel
Save