fix: 修复新增同类型题目设置值不变问题 (#359)
Co-authored-by: jiangchunfu <jiangchunfu@kaike.la>
This commit is contained in:
parent
41d072bc90
commit
591a98bff1
@ -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 = '') {
|
||||
|
Loading…
Reference in New Issue
Block a user