From 07f4c8c64a9e708d0b5af55900904a1508e696b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Wed, 4 Nov 2020 14:21:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/common.js | 1 + 1 file changed, 1 insertion(+) 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, '') }