This commit is contained in:
Theluyuan 2023-01-11 16:01:44 +08:00
parent 703a4aeeaf
commit 2658e52bf9

View File

@ -65,7 +65,7 @@ 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, "")) + "";