Browse Source

一个藏得很深的历史bug修复

刘洋 7 months ago
parent
commit
711444f0c3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/features/OnlineExam/Examing/TextQuestionView.vue
  2. 1 1
      vite.config.ts

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

@@ -340,7 +340,7 @@ let photoAnswers: string[] = $computed({
 
     if (!ele.innerHTML && pSrcs.length === 0) {
       // 完全为空则重置答案
-      studentAnswer = "";
+      studentAnswer = "" + "<div class='photo-answers-block'></div>";
       // 更新answerDiv的内容
       originalStudentAnswer = null;
     } else {

+ 1 - 1
vite.config.ts

@@ -149,7 +149,7 @@ export default defineConfig({
         target: SERVER_URL,
         changeOrigin: true,
         secure: false,
-        ws: true,
+        ws: false,
       },
       "/admin": {
         target: SERVER_URL,