From 514afa05b4c8f8c6177847be53c54d83bbf52dd7 Mon Sep 17 00:00:00 2001 From: marvzhang Date: Wed, 4 Dec 2019 15:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93stage=E8=A2=AB=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=87=8D=E7=BD=AEnext=5Fstage=E8=A2=AB?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA=E8=AF=A5stage=E7=9A=84field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Config/ConfigList.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/components/Config/ConfigList.vue b/frontend/src/components/Config/ConfigList.vue index bd31441e..ccae236a 100644 --- a/frontend/src/components/Config/ConfigList.vue +++ b/frontend/src/components/Config/ConfigList.vue @@ -607,6 +607,14 @@ export default { if (Object.keys(stages).length === 0) { this.onAddStage() } + // 重置next_stage被设置为该stage的field + Object.values(this.spiderForm.config.stages).forEach(_stage => { + _stage.fields.forEach(field => { + if (field.next_stage === stage.name) { + this.$set(field, 'next_stage', '') + } + }) + }) }, onAddStage (stage) { const stages = JSON.parse(JSON.stringify(this.spiderForm.config.stages))