闫增涛
2024-06-06 0e8066a203f35bc4e20b64113829975c5b48252b
答题器保存功能优化
3个文件已修改
7 ■■■■■ 已修改文件
src/App.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/examinations/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -72,7 +72,7 @@
        // embedded
        // english
        // artAndDance
        this.config.resourceCtx + "sportsAndHealth"
        this.config.resourceCtx + "childHealth"
      );
      // 测试试读30页
      // this.activeBook.tryPageCount = 10;
src/books/childHealth/view/content/index.vue
@@ -133,6 +133,7 @@
      questionDataMap: {},
      renderSignMap: {},
      highlightData: null,
      isSearch:false
    };
  },
  computed: {
src/components/examinations/index.vue
@@ -573,13 +573,13 @@
    },
    // 保存按钮
    saveAnswer() {
      const element = document.getElementsByClassName("examination")[0];
      const element = (this.container ? this.container : document
      ).querySelector(".examination");
      if (element) {
        const pageNum = this.getParentWithClass(
          element,
          "page-box"
        ).getAttribute("page");
        console.log(this.config.activeBook.name, pageNum);
        const oldAnswerData = localStorage.getItem(
          this.config.activeBook.name + "oldAnswerData"
        );