mirror of https://github.com/openspug/spug
U 优化批量执行缓存已选择的主机
parent
bfc298bf22
commit
1a89fae8c1
|
@ -23,10 +23,6 @@ class TaskIndex extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
|
||||||
store.hosts = []
|
|
||||||
}
|
|
||||||
|
|
||||||
handleSubmit = () => {
|
handleSubmit = () => {
|
||||||
this.setState({loading: true});
|
this.setState({loading: true});
|
||||||
const host_ids = store.hosts.map(item => item.id);
|
const host_ids = store.hosts.map(item => item.id);
|
||||||
|
|
|
@ -12,6 +12,7 @@ import logo from 'layout/logo-spug-txt.png';
|
||||||
import envStore from 'pages/config/environment/store';
|
import envStore from 'pages/config/environment/store';
|
||||||
import appStore from 'pages/config/app/store';
|
import appStore from 'pages/config/app/store';
|
||||||
import requestStore from 'pages/deploy/request/store';
|
import requestStore from 'pages/deploy/request/store';
|
||||||
|
import execStore from 'pages/exec/task/store';
|
||||||
import hostStore from 'pages/host/store';
|
import hostStore from 'pages/host/store';
|
||||||
|
|
||||||
class LoginIndex extends React.Component {
|
class LoginIndex extends React.Component {
|
||||||
|
@ -29,6 +30,7 @@ class LoginIndex extends React.Component {
|
||||||
requestStore.records = [];
|
requestStore.records = [];
|
||||||
requestStore.deploys = [];
|
requestStore.deploys = [];
|
||||||
hostStore.records = [];
|
hostStore.records = [];
|
||||||
|
execStore.hosts = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSubmit = () => {
|
handleSubmit = () => {
|
||||||
|
|
Loading…
Reference in New Issue