Commit 2f7c943c authored by limingzhe's avatar limingzhe

fix: debug

parent 2359b243
......@@ -518,7 +518,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
const startIndex = Math.floor(Math.random() * startMaxLength);
const minEndIndex = startIndex + 4;
const maxEndIndex = arr.length;
const endIndex = Math.floor(Math.random() * (maxEndIndex - minEndIndex)) + minEndIndex;
const endIndex = Math.floor(Math.random() * (maxEndIndex - minEndIndex + 1)) + minEndIndex;
// 截取数组
// return arr.slice(startIndex, startIndex + startMaxLength);
......
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