Explorar el Código

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

Michael Wang hace 6 años
padre
commit
aa79429dae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/features/OnlineExam/Examing/TextQuestionView.vue

+ 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 {