Commit 43f3d886 authored by limingzhe's avatar limingzhe

fix: debug

parent 2f7c943c
...@@ -108,9 +108,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -108,9 +108,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
const ques = this.item.quesArr[0]; const ques = this.item.quesArr[0];
this.randomSentenceList = this.getRandomList(this.bookTextList); this.randomSentenceList = this.getRandomList(this.bookTextList);
if (this.randomSentenceList.length > 10) { // if (this.randomSentenceList.length > 10) {
this.randomSentenceList.length = 10; // this.randomSentenceList.length = 10;
} // }
console.log('this.randomSentenceList : ' + this.randomSentenceList ); console.log('this.randomSentenceList : ' + this.randomSentenceList );
...@@ -464,7 +464,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -464,7 +464,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
// this.bookTextList = resData1.data; // this.bookTextList = resData1.data;
// this.bookTextList = this.filterDuplicateText( this.bookTextList); // // this.bookTextList = this.filterDuplicateText( this.bookTextList);
// console.log('this.bookTextList: ', this.bookTextList); // console.log('this.bookTextList: ', this.bookTextList);
...@@ -497,11 +497,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -497,11 +497,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
checkAndCall(); checkAndCall();
this.bookTextList = this.filterDuplicateText( this.bookTextList); // this.bookTextList = this.filterDuplicateText( this.bookTextList);
} }
getRandomList(arr) { getRandomList(arr) {
return arr;
if (!arr || arr.length <= 4) { if (!arr || arr.length <= 4) {
return arr; return arr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment