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

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