From 1b813584c0232606e46be81be138e275c2919b1d Mon Sep 17 00:00:00 2001 From: chiayin Date: Thu, 14 Mar 2024 16:42:39 +0800 Subject: [PATCH] fix: Issues #246 done. --- src/components/Discover/Map/Filter/Attributes.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Discover/Map/Filter/Attributes.vue b/src/components/Discover/Map/Filter/Attributes.vue index b543726..3fea6b9 100644 --- a/src/components/Discover/Map/Filter/Attributes.vue +++ b/src/components/Discover/Map/Filter/Attributes.vue @@ -583,6 +583,9 @@ export default { let x = index === 0 ? Math.floor(value * 100) / 100 : index === values.length - 1 ? value = Math.ceil(value * 100) / 100 : Math.round(value * 100) / 100; + // 處理科學記號等格式轉換 + // Decimal 無法處理超過 16 位數 + x = new Intl.NumberFormat(undefined, {useGrouping: false}).format(x); return x } })