Prechádzať zdrojové kódy

fix 删除上传图片后,题目应该是未作答

Michael Wang 6 rokov pred
rodič
commit
aa79429dae

+ 1 - 1
src/features/OnlineExam/Examing/TextQuestionView.vue

@@ -320,7 +320,7 @@ export default {
         if (pEle) [...pEle].forEach(v => v.remove());
         console.log(ele.innerHTML);
 
-        if (!this.studentAnswer && pSrcs.length === 0) {
+        if (!ele.innerHTML && pSrcs.length === 0) {
           // 完全为空则重置答案
           this.studentAnswer = null;
         } else {