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