空就是空

This commit is contained in:
2023-01-11 15:58:52 +08:00
parent 0511c97302
commit e16168dd21
4 changed files with 10 additions and 1 deletions

View File

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