This commit is contained in:
Theluyuan 2023-01-11 16:01:29 +08:00
parent e16168dd21
commit 7603563a7a

View File

@ -64,8 +64,8 @@ const isPassword = computed(() => type.value == "password");
const composing = ref(false); const composing = ref(false);
const formatMoney = function (s: string) { const formatMoney = function (s: string) {
if(s == ""){ if (s == "") {
return "" return "";
} }
var noNegative = true; var noNegative = true;
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + ""; s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "";