From 7603563a7a0e08a8087992849f06cf98f2e80af2 Mon Sep 17 00:00:00 2001 From: Theluyuan <1162963624@qq.com> Date: Wed, 11 Jan 2023 16:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/input/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/input/index.vue b/src/component/input/index.vue index 10b4599..d1cd51c 100644 --- a/src/component/input/index.vue +++ b/src/component/input/index.vue @@ -64,8 +64,8 @@ const isPassword = computed(() => type.value == "password"); const composing = ref(false); const formatMoney = function (s: string) { - if(s == ""){ - return "" + if (s == "") { + return ""; } var noNegative = true; s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";