fix เครื่องราช

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-19 09:16:35 +07:00
parent 316e0dddab
commit a7da9da799
2 changed files with 2 additions and 6 deletions

View file

@ -131,7 +131,7 @@ interface ResponseManageList {
profileType: string;
rank: string;
reason: string;
requestDate: Date | string;
requestDate: Date;
requestInsignia: string;
requestInsigniaShortName: string;
requestNote: string;

View file

@ -90,11 +90,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
})`
: "",
insigniaLevel: e.level ? e.level : "",
dateSend: e.requestDate
? typeof e.requestDate === "string"
? e.requestDate
: e.requestDate.toISOString()
: null,
dateSend: e.requestDate ? date2Thai(e.requestDate) : null,
requestNote: e.requestNote ? e.requestNote : "",
employeeType: profileType(e.profileType) || null,
reason: e.reason ? e.reason : "",