提交 0066a287 编写于 作者: guangjun.yang's avatar guangjun.yang

答题等

上级 30c04328
......@@ -90,7 +90,8 @@ export default {
"questionList",
"currentQuestion",
"commonConfig",
"titleConfig"
"titleConfig",
"userInfo"
])
},
data() {
......@@ -151,6 +152,8 @@ export default {
// rightFlag: 1, // 答题对错:1对 2错
titleId: this.currentQuestion.titleId, // 题目ID
titleNo: this.currentQuestion.titleNo, // 题目ID
setEntry: true,
token: this.userInfo.userToken,
};
// 计算是否答对了题目(只有多选题,才做相应处理)
......
......@@ -85,10 +85,9 @@ export default {
// 解析
toggleAnalysis() {
this.currentQuestion.isAnalyzed = true;
// if() {
// }
this.$parent.refs['questionContentRef'] && this.$parent.refs['questionContentRef'].commitAnswer(this.currentQuestion.typeId == 2);
if(!this.currentQuestion.commitFlag) {
this.$parent.$refs['questionContentRef'] && this.$parent.refs['questionContentRef'].commitAnswer(this.currentQuestion.typeId == 2);
}
// this.$store.commit('SET_CURRENT_QUESTION', this.currentQuestion);
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册