Explorar o código

一次渲染,不再双向更新

Michael Wang %!s(int64=3) %!d(string=hai) anos
pai
achega
62432da9e1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/features/OnlineExam/Examing/TextQuestionView.vue

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

@@ -389,6 +389,7 @@ function photosReseted(urls: string[]) {
           </n-button>
         </div>
         <div
+          v-once
           ref="answerDiv"
           ondragstart="return false"
           ondrop="return false"
@@ -398,7 +399,7 @@ function photosReseted(urls: string[]) {
           @input="($event) => textInput($event)"
           @blur="($event) => textInput($event)"
           v-html="originalStudentAnswer"
-        ></div>
+        />
         <div
           style="
             margin-top: -25px;