From 41e10f56cad4c0e37d9d17bb2c1409f792dbdb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E5=86=A0=E5=AD=A6?= <1109935898@qq.com> Date: Mon, 30 Sep 2024 16:41:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=97=AE=E5=8D=B7=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=EF=BC=8C=E5=A4=8D=E5=88=B6=E9=97=AE=E9=A2=98=E5=81=B6=E7=8E=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/planetDesign/Design/fragement/QuestionStem.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/planetDesign/Design/fragement/QuestionStem.vue b/src/views/planetDesign/Design/fragement/QuestionStem.vue index f72de9a1..a1f6f072 100644 --- a/src/views/planetDesign/Design/fragement/QuestionStem.vue +++ b/src/views/planetDesign/Design/fragement/QuestionStem.vue @@ -425,7 +425,12 @@ export default { * 复制题目 */ const copyHandle = (copyInfo) => { - context.emit("update", copyInfo); + // 2024-09-30 remove this line. + // this line (1st api call) and the end line of this method (2nd api call) will trigger api call twice (same api with different params) + // and the sequence of those two api call is very important + // sometimes (not very often) 1st api call would be after 2nd api call [[[the ERROR show up here]]] + // backend will add and delete new copied question immediately + // context.emit("update", copyInfo); let copyInfoCopy = JSON.parse(JSON.stringify(copyInfo)); if ([105, 201].includes(copyInfoCopy.question_type)) { copyInfoCopy.config.design_version = 0;