diff --git a/spug_web/src/pages/deploy/app/Table.js b/spug_web/src/pages/deploy/app/Table.js index c5c7586..b26a34f 100644 --- a/spug_web/src/pages/deploy/app/Table.js +++ b/spug_web/src/pages/deploy/app/Table.js @@ -98,6 +98,8 @@ class ComTable extends React.Component { store.showExtForm(record.id, info)}>编辑 + store.showExtForm(record.id, info, true)}>克隆配置 + this.handleDeployDelete(info)}>删除 ) diff --git a/spug_web/src/pages/deploy/app/store.js b/spug_web/src/pages/deploy/app/store.js index 4a95bfe..dbda7ea 100644 --- a/spug_web/src/pages/deploy/app/store.js +++ b/spug_web/src/pages/deploy/app/store.js @@ -38,7 +38,7 @@ class Store { this.formVisible = true; }; - showExtForm = (app_id, info) => { + showExtForm = (app_id, info, isClone) => { this.page = 0; this.app_id = app_id; if (info) { @@ -47,6 +47,7 @@ class Store { } else { this.ext2Visible = true } + isClone && delete info.id; this.deploy = info } else { this.addVisible = true;