diff --git a/spug_web/src/pages/deploy/app/CloneConfirm.js b/spug_web/src/pages/deploy/app/CloneConfirm.js
index 1d37797..c36eb60 100644
--- a/spug_web/src/pages/deploy/app/CloneConfirm.js
+++ b/spug_web/src/pages/deploy/app/CloneConfirm.js
@@ -49,6 +49,7 @@ class CloneConfirm extends React.Component {
diff --git a/spug_web/src/pages/deploy/app/Table.js b/spug_web/src/pages/deploy/app/Table.js
index 3f529fb..1836284 100644
--- a/spug_web/src/pages/deploy/app/Table.js
+++ b/spug_web/src/pages/deploy/app/Table.js
@@ -18,7 +18,7 @@ import lds from 'lodash';
class ComTable extends React.Component {
constructor(props) {
super(props);
- this.cloneObj = {};
+ this.cloneObj = null;
}
componentDidMount() {
@@ -60,11 +60,16 @@ class ComTable extends React.Component {
handleClone = (e, id) => {
e.stopPropagation();
+ this.cloneObj = null;
Modal.confirm({
icon: 'exclamation-circle',
title: '选择克隆对象',
content: this.cloneObj = v[1]}/>,
onOk: () => {
+ if (!this.cloneObj) {
+ message.error('请选择目标应用及环境')
+ return Promise.reject()
+ }
const info = JSON.parse(this.cloneObj);
store.showExtForm(null, id, info, true)
},