This commit is contained in:
Theluyuan 2022-12-15 10:12:01 +08:00
parent 1475322d91
commit c9fd3d4baf
4 changed files with 24 additions and 26 deletions

View File

@ -119,7 +119,6 @@ const _sfc_main = defineComponent({
} }
} }
let z = (noNegative ? "" : "-") + t.split("").reverse().join(""); let z = (noNegative ? "" : "-") + t.split("").reverse().join("");
z = isNaN(z) ? 0 : z;
if (r) { if (r) {
return z + "." + r; return z + "." + r;
} else { } else {

View File

@ -11215,7 +11215,6 @@ const _sfc_main$1v = defineComponent({
} }
} }
let z = (noNegative ? "" : "-") + t.split("").reverse().join(""); let z = (noNegative ? "" : "-") + t.split("").reverse().join("");
z = isNaN(z) ? 0 : z;
if (r) { if (r) {
return z + "." + r; return z + "." + r;
} else { } else {

View File

@ -81,8 +81,8 @@ const formatMoney = function (s: string) {
t += l[i] + ""; // t += l[i] + ""; //
} }
} }
let z:any = (noNegative ? "" : "-") + t.split("").reverse().join("") let z:any = (noNegative ? "" : "-") + t.split("").reverse().join("");
z = isNaN(z) ? 0 : z // z = isNaN(z) ? 0 : z;
if(r){ if(r){
return z+ "." + r; return z+ "." + r;

File diff suppressed because one or more lines are too long