Browse Source

fix: 由于容错率的关系,Number方法改成parseInt

research/10.0
langwenda 5 years ago
parent
commit
cfd715825a
  1. 2
      src/modules/pages/maintain/forms/components/form.jdbc.ts

2
src/modules/pages/maintain/forms/components/form.jdbc.ts

@ -658,7 +658,7 @@ export class FormJdbc extends BI.Widget {
}
private checkValueRange(value: string) {
return Number(value) <= INT_MAX_VALUE && Number(value) >= INT_MIN_VALUE;
return parseInt(value, 0) <= INT_MAX_VALUE && parseInt(value, 0) >= INT_MIN_VALUE;
}
private getDrivers() {

Loading…
Cancel
Save