add batch script
This commit is contained in:
1 parent
0f050a068b
commit
7994e9c515
6 files changed
+106
-9
No files matched your search
@@ -12,6 +12,7 @@ import "./index.css";
|
||||
import RegisterNode from "./RegisterNode";
|
||||
import TreeTabs from "./TreeTabs";
|
||||
import Explorer from "./Explorer";
|
||||
import BatchExec from "../common/BatchExec";
|
||||
|
||||
const { Sider, Content } = Layout;
|
||||
|
||||
@@ -63,6 +64,10 @@ export default class Main extends Component {
|
||||
message.success("服务器已更新");
|
||||
})
|
||||
|
||||
ipcRenderer.on(MainEventType.BATCH_EXEC, (event: any, path: string)=>{
|
||||
BatchExec(path, this.state.workdir);
|
||||
})
|
||||
|
||||
console.log("workdir", this.settings.curWorkspace.getWorkdir());
|
||||
this.setState({
|
||||
workdir: this.settings.curWorkspace.getWorkdir(),
|
||||
|
||||
Reference in new issue
Block a user