Ver Fonte

很久以前有需求,替换题干中的空格。现在需求发生变化,保留空格。

Michael Wang há 5 anos atrás
pai
commit
beb53ff9f4
1 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 4
      src/features/OnlineExam/Examing/QuestionView.vue

+ 0 - 4
src/features/OnlineExam/Examing/QuestionView.vue

@@ -114,10 +114,6 @@ export default {
       const transferWellNumberAndTrustInBody = function(repQuestion) {
         //将题干中的三个#替换为下划线
         if (repQuestion.body) {
-          //将题干里的 换成空格
-          repQuestion.body = repQuestion.body
-            .toString()
-            .replace(new RegExp(" ", "g"), " ");
           repQuestion.body = repQuestion.body
             .toString()
             .replace(new RegExp("###", "g"), "_______");