Merge branch 'develop'
This commit is contained in:
commit
34d58ef29b
1 changed files with 6 additions and 6 deletions
|
|
@ -1163,13 +1163,13 @@ export const useCounterMixin = defineStore("mixin", () => {
|
||||||
const m = parseInt(month);
|
const m = parseInt(month);
|
||||||
const d = parseInt(day);
|
const d = parseInt(day);
|
||||||
|
|
||||||
// const parts = [];
|
const parts = [];
|
||||||
// if (y > 0) parts.push(`${y} ปี`);
|
if (y > 0) parts.push(`${y} ปี`);
|
||||||
// if (m > 0) parts.push(`${m} เดือน`);
|
if (m > 0) parts.push(`${m} เดือน`);
|
||||||
// if (d > 0) parts.push(`${d} วัน`);
|
if (d > 0) parts.push(`${d} วัน`);
|
||||||
|
|
||||||
// return parts.length > 0 ? parts.join(" ") : ""; // กรณีที่ทั้งหมดเป็น 0
|
return parts.length > 0 ? parts.join(" ") : `${y} ปี ${m} เดือน ${d} วัน`; // กรณีที่ทั้งหมดเป็น 0
|
||||||
return `${y} ปี ${m} เดือน ${d} วัน`;
|
// return `${y} ปี ${m} เดือน ${d} วัน`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue