fix table qfw

This commit is contained in:
2023-10-10 13:29:55 +08:00
parent 0a1d29ffb8
commit 65a209fd8a
7 changed files with 19 additions and 10 deletions

View File

@@ -47,7 +47,10 @@ const emit = defineEmits([
"update:selectedKeys",
"update:selectedKey",
]);
function toThousands(num: number | string) {
function toThousands(num: number | string | undefined) {
if(typeof num == 'undefined'){
return ''
}
if (typeof num == "string") {
num = parseFloat(num || "0");
}