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 = () => {
|
||||
this.setState({loading: true});
|
||||
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 appStore from 'pages/config/app/store';
|
||||
import requestStore from 'pages/deploy/request/store';
|
||||
import execStore from 'pages/exec/task/store';
|
||||
import hostStore from 'pages/host/store';
|
||||
|
||||
class LoginIndex extends React.Component {
|
||||
|
@ -29,6 +30,7 @@ class LoginIndex extends React.Component {
|
|||
requestStore.records = [];
|
||||
requestStore.deploys = [];
|
||||
hostStore.records = [];
|
||||
execStore.hosts = [];
|
||||
}
|
||||
|
||||
handleSubmit = () => {
|
||||
|
|
Loading…
Reference in New Issue