From 6ae4dcd7bf2067247b4955f71df0f6fa168809fe Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 28 Feb 2025 16:58:03 +0700 Subject: [PATCH] fix formatDatePosition --- src/stores/mixin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stores/mixin.ts b/src/stores/mixin.ts index ccba40ca0..fd4adacb9 100644 --- a/src/stores/mixin.ts +++ b/src/stores/mixin.ts @@ -1155,9 +1155,9 @@ export const useCounterMixin = defineStore("mixin", () => { const d = parseInt(day); const parts = []; - if (y > 0) parts.push(`${y}ปี`); - if (m > 0) parts.push(`${m}เดือน`); - if (d > 0) parts.push(`${d}วัน`); + if (y > 0) parts.push(`${y} ปี`); + if (m > 0) parts.push(`${m} เดือน`); + if (d > 0) parts.push(`${d} วัน`); return parts.length > 0 ? parts.join(" ") : ""; // กรณีที่ทั้งหมดเป็น 0 }