|
@@ -12,6 +12,7 @@ const mixin = {
|
|
|
isShowRightAnswer: false, // 是否显示正确答案
|
|
|
disabled: false, // 是否禁用
|
|
|
isEnable,
|
|
|
+ loader: false,
|
|
|
};
|
|
|
},
|
|
|
props: {
|
|
@@ -35,6 +36,7 @@ const mixin = {
|
|
|
GetCoursewareComponentContent_View({ courseware_id: this.coursewareId, component_id: this.id }).then(
|
|
|
({ content }) => {
|
|
|
if (content) this.data = JSON.parse(content);
|
|
|
+ this.loader = true;
|
|
|
},
|
|
|
);
|
|
|
},
|
|
@@ -53,6 +55,9 @@ const mixin = {
|
|
|
* @param {boolean} disabled 是否禁用
|
|
|
*/
|
|
|
showAnswer(isJudgingRightWrong, isShowRightAnswer, userAnswer, disabled) {
|
|
|
+ if (this.loader === false) {
|
|
|
+ return setTimeout(() => this.showAnswer(isJudgingRightWrong, isShowRightAnswer, userAnswer, disabled), 100);
|
|
|
+ }
|
|
|
this.isJudgingRightWrong = isJudgingRightWrong;
|
|
|
this.isShowRightAnswer = isShowRightAnswer;
|
|
|
this.disabled = disabled;
|