fix(plugin-sequence-field): integer generated should not less then start (#1330)

This commit is contained in:
Junyi 2023-01-05 16:12:11 +08:00 committed by GitHub
parent 346af57b55
commit 58b7c5dd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ sequencePatterns.register('integer', {
let next; let next;
if (lastSeq && lastSeq.get('current') != null) { if (lastSeq && lastSeq.get('current') != null) {
next = lastSeq.get('current') + 1; next = Math.max(lastSeq.get('current') + 1, start);
// cycle as cron string // cycle as cron string
if (cycle) { if (cycle) {