diff --git a/src/utils/common.js b/src/utils/common.js index c794c08..338023a 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -79,6 +79,7 @@ export function departGetForm (arr = []) { export function handleInput (form) { let value = this[form.split('.')[0]][form.split('.')[1]] + value = String(value) if (value.split('.').length > 2) value = String(parseFloat(value)) this[form.split('.')[0]][form.split('.')[1]] = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '') }