From 591a98bff1ffcf606b9cf2ff6c132a680f150312 Mon Sep 17 00:00:00 2001 From: Jiangchunfu Date: Tue, 23 Jul 2024 14:17:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=90=8C=E7=B1=BB=E5=9E=8B=E9=A2=98=E7=9B=AE=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=80=BC=E4=B8=8D=E5=8F=98=E9=97=AE=E9=A2=98=20(#359)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jiangchunfu --- web/src/management/utils/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/management/utils/index.js b/web/src/management/utils/index.js index 30ab2e1c..5ce78e54 100644 --- a/web/src/management/utils/index.js +++ b/web/src/management/utils/index.js @@ -1,5 +1,5 @@ import { defaultQuestionConfig } from '../config/questionConfig' -import { map as _map } from 'lodash-es' +import { map as _map, cloneDeep } from 'lodash-es' import questionLoader from '@/materials/questions/questionLoader' const generateQuestionField = () => { @@ -61,7 +61,7 @@ export const getQuestionByType = (type, fields) => { } } - return newQuestion + return cloneDeep(newQuestion) } export function filterQuestionPreviewData(data, currentEditOne = '') {