src/books/childHealth/view/content/index.vue
@@ -182,7 +182,7 @@ }, mounted() { // 默认加载章节 this.showCatalogList = [1]; this.showCatalogList = [2]; // 滚动监听节流 this.throttledScrollHandler = _.throttle( this.scrollFun, @@ -627,12 +627,15 @@ } else { const obj = {}; for (let key in testData[catalog][page]) { const token = localStorage.getItem('jsek-token') if(token) { obj[key] = await getQuestionList( [], testData[catalog][page][key], this.config.activeBook ); } } this.questionDataMap[page] = obj; } console.log("题目", this.questionDataMap);