闫增涛
2024-06-07 7944d624d5adf492a4a5ead068b2a88c707e2388
src/books/childHealth/view/content/index.vue
@@ -133,6 +133,7 @@
      questionDataMap: {},
      renderSignMap: {},
      highlightData: null,
      isSearch:false
    };
  },
  computed: {
@@ -181,7 +182,7 @@
  },
  mounted() {
    // 默认加载章节
    this.showCatalogList = [1];
    this.showCatalogList = [2];
    // 滚动监听节流
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
@@ -626,11 +627,14 @@
                  } else {
                    const obj = {};
                    for (let key in testData[catalog][page]) {
                      obj[key] = await getQuestionList(
                        [],
                        testData[catalog][page][key],
                        this.config.activeBook
                      );
                      const token = localStorage.getItem('jsek-token')
                      if(token) {
                          obj[key] = await getQuestionList(
                          [],
                          testData[catalog][page][key],
                          this.config.activeBook
                        );
                      }
                    }
                    this.questionDataMap[page] = obj;
                  }