|
@@ -78,7 +78,7 @@ import { getCardHeadModel } from "../../../../card/elementModel";
|
|
|
import TopicElementPreview from "../../../../card/components/TopicElementPreview";
|
|
|
import CardView from "../../../../card/components/CardView.vue";
|
|
|
import CardHeadSample from "../../../../card/elements/card-head/CardHead";
|
|
|
-import { deepCopy, objTypeOf } from "@/plugins/utils";
|
|
|
+import { deepCopy, objTypeOf, removeRichTextValue } from "@/plugins/utils";
|
|
|
// ceshi
|
|
|
// import paperData from "./paper.json";
|
|
|
|
|
@@ -154,9 +154,11 @@ export default {
|
|
|
attachmentId: res.attachmentId,
|
|
|
};
|
|
|
const answerJson = res.answerJson
|
|
|
- ? JSON.parse(res.answerJson)
|
|
|
+ ? JSON.parse(removeRichTextValue(res.answerJson))
|
|
|
: { details: [] };
|
|
|
- const paperJson = res.paperJson ? JSON.parse(res.paperJson) : {};
|
|
|
+ const paperJson = res.paperJson
|
|
|
+ ? JSON.parse(removeRichTextValue(res.paperJson))
|
|
|
+ : {};
|
|
|
this.rebuildPaperQuestionNumber(answerJson);
|
|
|
this.rebuildPaperQuestionNumber(paperJson);
|
|
|
this.parsePaperAnswers(paperJson, answerJson);
|