From 7ff9a044b88e00ab2d61c248ed46e644ca50bd2b Mon Sep 17 00:00:00 2001 From: Yuan Date: Sat, 6 May 2023 18:03:32 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=20-=20=E8=AF=95=E5=8D=B7=E8=A7=84?= =?UTF-8?q?=E5=88=99=E6=A0=87=E7=AD=BE=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit e3857a75d01dde4fdec06078a947ff7646bdea55) --- src/views/publish/examRule/draft/editRule.vue | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/views/publish/examRule/draft/editRule.vue b/src/views/publish/examRule/draft/editRule.vue index c5065c8ad..4b88de5a5 100644 --- a/src/views/publish/examRule/draft/editRule.vue +++ b/src/views/publish/examRule/draft/editRule.vue @@ -185,20 +185,18 @@ export default { this.$nextTick(() => { this.$refs.form.resetFields() if (detail) { + this.isEditMode = true + this.index = detail.index + this.sceneInfo = detail.sceneInfo || [] + this.form = { + type: detail.type, + subtype: detail.subtype, + amount: detail.amount, + score: detail.score, + id: detail.id || '', + tags: detail.tags ? detail.tags[0] : '', + } this.fillLabelsOption().then(() => { - this.isEditMode = true - this.index = detail.index - console.log(detail) - this.form = { - type: detail.type, - subtype: detail.subtype, - amount: detail.amount, - score: detail.score, - id: detail.id || '', - tags: detail.tags ? detail.tags[0] : '', - } - this.sceneInfo = detail.sceneInfo || [] - this.topicNum = detail.topicNum this.getQuestionAmount() }) } else {