user1
2024-06-14 f4bfea700a57d71a9c30315387a77650af13858c
src/components/examinations/index.vue
@@ -474,6 +474,7 @@
</template>
<script>
import { Message } from 'element-ui';
export default {
  name: "examination-option",
  props: {
@@ -637,13 +638,10 @@
      }
    },
    // 保存按钮
    saveAnswer() {
      const element = (
        this.container ? this.container : document
      ).querySelector(".examination");
      if (element) {
    saveAnswer(e) {
      if (e.srcElement) {
        const pageNum = this.getParentWithClass(
          element,
          e.srcElement,
          "page-box"
        ).getAttribute("page");
        const oldAnswerData = localStorage.getItem(
@@ -674,6 +672,7 @@
          this.config.activeBook.name + "oldAnswerData",
          JSON.stringify(oldData)
        );
        Message.success('保存成功')
      }
      // if(oldData[this.chapter]) {