From a8f47f7593312db1d98f37e32a23df3581438390 Mon Sep 17 00:00:00 2001 From: chiayin Date: Wed, 27 Sep 2023 16:25:04 +0800 Subject: [PATCH] Issue #148: Done. --- src/components/Discover/Map/SidebarState.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Discover/Map/SidebarState.vue b/src/components/Discover/Map/SidebarState.vue index 6206f03..77725e0 100644 --- a/src/components/Discover/Map/SidebarState.vue +++ b/src/components/Discover/Map/SidebarState.vue @@ -225,7 +225,7 @@ export default { * @returns {string} 轉換完成的百分比字串 */ getPercentLabel(val){ - if(val * 100 === 100) return `${val * 100}%`; + if(val * 100 >= 100) return `${val * 100}%`; return `${(val * 100).toFixed(1)}%`; }, /**