Explorar o código

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

Michael Wang %!s(int64=6) %!d(string=hai) anos
pai
achega
aa79429dae
Modificáronse 1 ficheiros con 1 adicións e 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 {