diff --git a/spug_api/spug/settings.py b/spug_api/spug/settings.py
index 7a117384..15151916 100644
--- a/spug_api/spug/settings.py
+++ b/spug_api/spug/settings.py
@@ -121,7 +121,7 @@
re.compile('/apis/.*'),
)
-SPUG_VERSION = 'v2.2.6'
+SPUG_VERSION = 'v2.3.0'
# override default config
try:
diff --git a/spug_web/src/libs/index.js b/spug_web/src/libs/index.js
index 938c98bb..dc42beea 100644
--- a/spug_web/src/libs/index.js
+++ b/spug_web/src/libs/index.js
@@ -8,4 +8,4 @@ import _http from './http';
export * from './functools';
export * from './router';
export const http = _http;
-export const VERSION = 'v2.2.6';
+export const VERSION = 'v2.3.0';
diff --git a/spug_web/src/pages/deploy/request/Ext1Form.js b/spug_web/src/pages/deploy/request/Ext1Form.js
index 2d798769..7b42c2fa 100644
--- a/spug_web/src/pages/deploy/request/Ext1Form.js
+++ b/spug_web/src/pages/deploy/request/Ext1Form.js
@@ -184,7 +184,7 @@ class Ext1Form extends React.Component {
)}
-
+
{info['app_host_ids'].map(id => (
this.handleChange(id)}>
{lds.get(hostStore.idMap, `${id}.name`)}({lds.get(hostStore.idMap, `${id}.hostname`)}:{lds.get(hostStore.idMap, `${id}.port`)})
diff --git a/spug_web/src/pages/deploy/request/Ext2Form.js b/spug_web/src/pages/deploy/request/Ext2Form.js
index 9be6e9a4..bdff63d2 100644
--- a/spug_web/src/pages/deploy/request/Ext2Form.js
+++ b/spug_web/src/pages/deploy/request/Ext2Form.js
@@ -76,7 +76,7 @@ class Ext2Form extends React.Component {
)}
-
+
{getFieldDecorator('extra', {initialValue: info['extra']})(
)}
@@ -86,7 +86,7 @@ class Ext2Form extends React.Component {
)}
-
+
{info['app_host_ids'].map(id => (
this.handleChange(id, v)}>
{lds.get(hostStore.idMap, `${id}.name`)}({lds.get(hostStore.idMap, `${id}.hostname`)}:{lds.get(hostStore.idMap, `${id}.port`)})
diff --git a/spug_web/src/pages/exec/task/index.js b/spug_web/src/pages/exec/task/index.js
index 6672c6c9..dc89705a 100644
--- a/spug_web/src/pages/exec/task/index.js
+++ b/spug_web/src/pages/exec/task/index.js
@@ -23,6 +23,10 @@ class TaskIndex extends React.Component {
}
}
+ componentDidMount() {
+ store.hosts = []
+ }
+
handleSubmit = () => {
this.setState({loading: true});
const host_ids = store.hosts.map(item => item.id);
@@ -38,7 +42,12 @@ class TaskIndex extends React.Component {
{store.hosts.map(item => (
- {item.name}({item.hostname}:{item.port})
+ store.hosts = store.hosts.filter(x => x.id !== item.id)}>
+ {item.name}({item.hostname}:{item.port})
))}