diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue index 1417165eba..3ffbaa656a 100644 --- a/frontend/src/business/components/api/automation/ApiAutomation.vue +++ b/frontend/src/business/components/api/automation/ApiAutomation.vue @@ -419,6 +419,9 @@ export default { deleteResourceIds(array) { if (array instanceof Array && array.length > 0) { array.forEach(item => { + if (item.currentScenarioId && item.currentScenarioId.length > 0) { + delete item.currentScenarioId; + } if (item.resourceId) { delete item.resourceId; } diff --git a/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue b/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue index 167a08b7d0..8c29b16d76 100644 --- a/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue @@ -257,8 +257,11 @@ export default { }, deep: true }, - 'request.name'() { - this.data.name = this.request.name + request: { + handler(v) { + this.data = this.request + }, + deep: true } }, methods: {