parseInt
This commit is contained in:
parent
8bcc43905a
commit
0745ccf995
7 changed files with 15 additions and 15 deletions
|
|
@ -29,7 +29,7 @@ export default {
|
|||
...Setting.methods,
|
||||
getValue(e) {
|
||||
if (!this.truncate === 1) {
|
||||
return parseInt(e.target.value)
|
||||
return Number.parseInt(e.target.value)
|
||||
} else if (this.truncate > 1) {
|
||||
return Math.trunc(e.target.value / this.truncate) * this.truncate
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue