Commit 43f3d886 authored by limingzhe's avatar limingzhe

fix: debug

parent 2f7c943c
......@@ -108,9 +108,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
const ques = this.item.quesArr[0];
this.randomSentenceList = this.getRandomList(this.bookTextList);
if (this.randomSentenceList.length > 10) {
this.randomSentenceList.length = 10;
}
// if (this.randomSentenceList.length > 10) {
// this.randomSentenceList.length = 10;
// }
console.log('this.randomSentenceList : ' + this.randomSentenceList );
......@@ -464,7 +464,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
// this.bookTextList = resData1.data;
// this.bookTextList = this.filterDuplicateText( this.bookTextList);
// // this.bookTextList = this.filterDuplicateText( this.bookTextList);
// console.log('this.bookTextList: ', this.bookTextList);
......@@ -497,11 +497,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
checkAndCall();
this.bookTextList = this.filterDuplicateText( this.bookTextList);
// this.bookTextList = this.filterDuplicateText( this.bookTextList);
}
getRandomList(arr) {
return arr;
if (!arr || arr.length <= 4) {
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