ปรับ mixin Date และเพิ่มไฟล์ ตำแหน่ง/เงินเดือน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-07 17:47:31 +07:00
parent c91482ef7c
commit 0d4146e923
8 changed files with 6644 additions and 6 deletions

View file

@ -125,14 +125,17 @@ export const useCounterMixin = defineStore("mixin", () => {
}
let dstTime = "";
if (isTime) {
const H = date.getHours().toString().padStart(2, "0");
const M = date.getMinutes().toString().padStart(2, "0");
// const H = date.getHours().toString().padStart(2, "0");
// const M = date.getMinutes().toString().padStart(2, "0");
const H = date.getHours().toString().padStart(2);
const M = date.getMinutes().toString().padStart(2);
// const S = date.getSeconds().toString().padStart(2, "0")
// dstTime = " " + H + ":" + M + ":" + S + " น."
dstTime = " " + H + ":" + M + " น.";
}
return (
date.getDate().toString().padStart(2, "0") +
// date.getDate().toString().padStart(2, "0") +
date.getDate().toString().padStart(2) +
" " +
dstMonth +
" " +