|
|
@@ -265,9 +265,15 @@ const choiceQuestionList = () => {
|
|
|
});
|
|
|
(props.workArray ?? []).forEach(
|
|
|
(studentWork: any, studentIndex: number) => {
|
|
|
- const _studentContent: any = JSON.parse(
|
|
|
- decodeURIComponent(studentWork.content)
|
|
|
- ).testJson
|
|
|
+ let _studentContent: any = []
|
|
|
+ try {
|
|
|
+ _studentContent = JSON.parse(
|
|
|
+ decodeURIComponent(studentWork.content)
|
|
|
+ ).testJson
|
|
|
+ }
|
|
|
+ catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
// let _studentContentCorrection = []
|
|
|
// console.log(_workData)
|
|
|
// console.log(_studentContent)
|